diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-06-13 23:18:05 -0700 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2018-06-15 13:08:47 -0700 |
commit | dbc74800e22c9ea417d30fd4c357d6154cc71870 (patch) | |
tree | f704225b4ce0d922047b5eb83a258ca2e69e3a7a /app/assets/javascripts/network | |
parent | 102db0aaf162ec122d79e1aaff0f5ac3c86af373 (diff) | |
download | gitlab-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.js | 4 |
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]]; |