Add intention to replace '!isNotEmpty()' to 'isEmpty()'
#KT-30123 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
88ee0bf6af
commit
6b35c06d50
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// PROBLEM: Replace negated 'isNotEmpty' with 'isEmpty'
|
||||
// FIX: Replace negated 'isNotEmpty' with 'isEmpty'
|
||||
// WITH_RUNTIME
|
||||
fun test(s: String) {
|
||||
val b = s.isEmpty()
|
||||
}
|
||||
Reference in New Issue
Block a user