Pattern: Missing use of .isEmpty
for string
Issue: -
Prefer checking isEmpty
over comparing string
to an empty string literal.
Examples of correct code:
myString.isEmpty
!myString.isEmpy
Examples of incorrect code:
myString↓ == ""
myString↓ != ""