Add "Control flow with empty body" inspection
#KT-30970 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
d2fcb8cc6a
commit
65f06454be
@@ -0,0 +1,10 @@
|
||||
// PROBLEM: 'if' has empty body
|
||||
// FIX: none
|
||||
|
||||
fun test(i: Int) {
|
||||
<caret>if (i == 1) {
|
||||
} else if (i == 2) {
|
||||
} else if (i == 3) {
|
||||
} else {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user