Updated linter config and curly conditional blocks
This commit is contained in:
@@ -27,8 +27,12 @@ ol.string.compareVersions = function(v1, v2) {
|
||||
var n1 = parseInt(s1[i] || '0', 10);
|
||||
var n2 = parseInt(s2[i] || '0', 10);
|
||||
|
||||
if (n1 > n2) return 1;
|
||||
if (n2 > n1) return -1;
|
||||
if (n1 > n2) {
|
||||
return 1;
|
||||
}
|
||||
if (n2 > n1) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user