Redundant if inspection supports now assignments and just if (...) true else false #KT-13259 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-11-21 16:12:59 +03:00
parent 14787e3583
commit c6997a1213
12 changed files with 126 additions and 33 deletions
+5
View File
@@ -0,0 +1,5 @@
// "Remove redundant 'if' statement" "true"
fun bar(value: Int): Boolean {
val x = <caret>if (value % 2 == 0) false else true
return x
}