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

Commit ca22ba9e authored by Deepanshu Gupta's avatar Deepanshu Gupta
Browse files

Fix invalid conditional check.

The check was always false. This wasn't really a problem since the regex
check later took care of it. But it's just wrong to leave such mistakes
in the code once they are noticed.

Change-Id: I84270a96141428bf15949ce8c881d2e4a2aa95f6
parent 6dbe512e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -379,7 +379,7 @@ public final class ResourceHelper {
        }

        // check the first character
        if (buf[0] < '0' && buf[0] > '9' && buf[0] != '.' && buf[0] != '-') {
        if ((buf[0] < '0' || buf[0] > '9') && buf[0] != '.' && buf[0] != '-') {
            return false;
        }