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

Commit c534f4ca authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unnecessary if-else statement from TextUtils#isEmpty. "

parents 61294f4c d4196c9e
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -456,10 +456,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} */