summaryrefslogtreecommitdiff
path: root/js/src/Ice/ArrayUtil.js
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-03-27 12:32:02 +0200
committerJose <jose@zeroc.com>2018-03-27 12:32:02 +0200
commitc21ef10cef69a8549491ce0bf324da6c4412399a (patch)
treeb4de3c62defbaf4028a3431234df44914366a1e5 /js/src/Ice/ArrayUtil.js
parentExtra fixes for hold test to break loops in case of error (diff)
downloadice-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.js4
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;
}