style(util): Address linting issues

This commit is contained in:
jokebookservice1 2018-09-17 22:07:26 +01:00
parent dab78c4f62
commit ab8d4dc560
No known key found for this signature in database
GPG key ID: A872407E9C478467

View file

@ -118,13 +118,12 @@ class Cast {
// Scratch compares strings as case insensitive.
const s1 = String(v1).toLowerCase();
const s2 = String(v2).toLowerCase();
if(s1 < s2) {
return -1
if (s1 < s2) {
return -1;
} else if (s1 > s2) {
return 1
} else {
return 0
return 1;
}
return 0;
}
// Compare as numbers.
return n1 - n2;