KT-12019 Highlighting of redundant 'if' statements (#871)

This commit is contained in:
Vladislav Golub
2016-05-23 21:02:38 +03:00
committed by Dmitry Jemerov
parent cf56ac0305
commit bb32c2d350
12 changed files with 180 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.RedundantIfInspection
+8
View File
@@ -0,0 +1,8 @@
// "Remove redundant 'if' statement" "true"
fun bar() {
<caret>if (value % 2 == 0) {
return true
} else {
return false
}
}
+4
View File
@@ -0,0 +1,4 @@
// "Remove redundant 'if' statement" "true"
fun bar() {
return value % 2 == 0
}