summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/network
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2018-06-13 23:18:05 -0700
committergfyoung <gfyoung17@gmail.com>2018-06-15 13:08:47 -0700
commitdbc74800e22c9ea417d30fd4c357d6154cc71870 (patch)
treef704225b4ce0d922047b5eb83a258ca2e69e3a7a /app/assets/javascripts/network
parent102db0aaf162ec122d79e1aaff0f5ac3c86af373 (diff)
downloadgitlab-ce-dbc74800e22c9ea417d30fd4c357d6154cc71870.tar.gz
Enable no-multi-assignment in JS files
Partially addresses #47006.
Diffstat (limited to 'app/assets/javascripts/network')
-rw-r--r--app/assets/javascripts/network/branch_graph.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/network/branch_graph.js b/app/assets/javascripts/network/branch_graph.js
index bd007c707f2..e4096ddb00d 100644
--- a/app/assets/javascripts/network/branch_graph.js
+++ b/app/assets/javascripts/network/branch_graph.js
@@ -112,6 +112,8 @@ export default (function() {
fill: "#444"
});
ref = this.days;
+
+ // eslint-disable-next-line no-multi-assign
for (mm = j = 0, len = ref.length; j < len; mm = (j += 1)) {
day = ref[mm];
if (cuday !== day[0] || cumonth !== day[1]) {
@@ -285,6 +287,8 @@ export default (function() {
r = this.r;
ref = commit.parents;
results = [];
+
+ // eslint-disable-next-line no-multi-assign
for (i = j = 0, len = ref.length; j < len; i = (j += 1)) {
parent = ref[i];
parentCommit = this.preparedCommits[parent[0]];