mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
style(util): Address linting issues
This commit is contained in:
parent
dab78c4f62
commit
ab8d4dc560
1 changed files with 4 additions and 5 deletions
|
@ -118,13 +118,12 @@ class Cast {
|
||||||
// Scratch compares strings as case insensitive.
|
// Scratch compares strings as case insensitive.
|
||||||
const s1 = String(v1).toLowerCase();
|
const s1 = String(v1).toLowerCase();
|
||||||
const s2 = String(v2).toLowerCase();
|
const s2 = String(v2).toLowerCase();
|
||||||
if(s1 < s2) {
|
if (s1 < s2) {
|
||||||
return -1
|
return -1;
|
||||||
} else if (s1 > s2) {
|
} else if (s1 > s2) {
|
||||||
return 1
|
return 1;
|
||||||
} else {
|
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
// Compare as numbers.
|
// Compare as numbers.
|
||||||
return n1 - n2;
|
return n1 - n2;
|
||||||
|
|
Loading…
Reference in a new issue