https://kotlinlang.org logo
#detekt
Title
z

zmunm

08/14/2020, 6:39 AM
Hi.. I found a simple typo.. https://arturbosch.github.io/detekt/style.html#noncompliant-code-39
Copy code
a?.let { 1.plus(1) } // can be replaced with `if (a == null) 1.plus(1)`
to
Copy code
a?:let { 1.plus(1) } // can be replaced with `if (a == null) 1.plus(1)`
a?.let { 1.plus(1) } // can be replaced with `if (a != null) 1.plus(1)`
b

Brais Gabin

08/14/2020, 6:49 AM
👍 1
Next time it’s better if you can open an issue (or just create the PR)
z

zmunm

08/14/2020, 6:54 AM
Thank you. I wasn't confident in open the PR, but it seemed too simple to post as an issue. I'll try next time 😄
b

Brais Gabin

08/14/2020, 6:58 AM
Looking forward to it :)