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