Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4196c9e authored by Amin Shaikh's avatar Amin Shaikh
Browse files

Remove unnecessary if-else statement from TextUtils#isEmpty.

Test: runtest frameworks-core

Change-Id: Ibcdc67130570775650fe8affda961227319c6641
parent 49e57a2d
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -455,10 +455,7 @@ public class TextUtils {
     * @return true if str is null or zero length
     */
    public static boolean isEmpty(@Nullable CharSequence str) {
        if (str == null || str.length() == 0)
            return true;
        else
            return false;
        return str == null || str.length() == 0;
    }

    /** {@hide} */