diff options
author | Jose <jose@zeroc.com> | 2018-03-27 12:32:02 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-03-27 12:32:02 +0200 |
commit | c21ef10cef69a8549491ce0bf324da6c4412399a (patch) | |
tree | b4de3c62defbaf4028a3431234df44914366a1e5 /js/src/Ice/ArrayUtil.js | |
parent | Extra fixes for hold test to break loops in case of error (diff) | |
download | ice-c21ef10cef69a8549491ce0bf324da6c4412399a.tar.bz2 ice-c21ef10cef69a8549491ce0bf324da6c4412399a.tar.xz ice-c21ef10cef69a8549491ce0bf324da6c4412399a.zip |
JavaScript ESLINT prefer const usage
https://eslint.org/docs/rules/prefer-const
Diffstat (limited to 'js/src/Ice/ArrayUtil.js')
-rw-r--r-- | js/src/Ice/ArrayUtil.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/Ice/ArrayUtil.js b/js/src/Ice/ArrayUtil.js index fe618398139..162a2d74913 100644 --- a/js/src/Ice/ArrayUtil.js +++ b/js/src/Ice/ArrayUtil.js @@ -77,8 +77,8 @@ class ArrayUtil { for(let i = arr.length; i > 1; --i) { - let e = arr[i - 1]; - let rand = Math.floor(Math.random() * i); + const e = arr[i - 1]; + const rand = Math.floor(Math.random() * i); arr[i - 1] = arr[rand]; arr[rand] = e; } |