KT-12019 Highlighting of redundant 'if' statements (#871)
This commit is contained in:
committed by
Dmitry Jemerov
parent
cf56ac0305
commit
bb32c2d350
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.RedundantIfInspection
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Remove redundant 'if' statement" "true"
|
||||
fun bar() {
|
||||
<caret>if (value % 2 == 0) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Remove redundant 'if' statement" "true"
|
||||
fun bar() {
|
||||
return value % 2 == 0
|
||||
}
|
||||
Reference in New Issue
Block a user