diff --git a/package.json b/package.json index 78edd6781e..781dc20f74 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "coveralls": "2.11.15", "debounce": "^1.0.0", "eslint": "3.10.0", - "eslint-config-openlayers": "5.0.0", + "eslint-config-openlayers": "6.0.0", "eslint-plugin-openlayers-internal": "2.2.0", "expect.js": "0.3.1", "gaze": "^1.0.0", diff --git a/src/ol/string.js b/src/ol/string.js index f9d99ca805..2c64bf8ee2 100644 --- a/src/ol/string.js +++ b/src/ol/string.js @@ -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;