diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-01-12 08:52:42 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-19 05:33:02 +0300 |
commit | 83ecc02daa880e73010ac871f821c01c2c8c116c (patch) | |
tree | 9d58c071c899285d3c1054a84a5787cd7de3e8e1 /app/assets/javascripts/merge_conflicts/merge_conflict_store.js.es6 | |
parent | 0b3f00492bc84a84d7a9867d3d02454d61672660 (diff) |
resolve all prefer-const eslint violations
Diffstat (limited to 'app/assets/javascripts/merge_conflicts/merge_conflict_store.js.es6')
-rw-r--r-- | app/assets/javascripts/merge_conflicts/merge_conflict_store.js.es6 | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/assets/javascripts/merge_conflicts/merge_conflict_store.js.es6 b/app/assets/javascripts/merge_conflicts/merge_conflict_store.js.es6 index 6cc909b0eb3..74587df22c5 100644 --- a/app/assets/javascripts/merge_conflicts/merge_conflict_store.js.es6 +++ b/app/assets/javascripts/merge_conflicts/merge_conflict_store.js.es6 @@ -1,4 +1,4 @@ -/* eslint-disable comma-dangle, object-shorthand, no-param-reassign, camelcase, prefer-const, no-nested-ternary, no-continue, max-len */ +/* eslint-disable comma-dangle, object-shorthand, no-param-reassign, camelcase, no-nested-ternary, no-continue, max-len */ /* global Cookies */ /* global Vue */ @@ -251,7 +251,7 @@ }, checkLineLengths(linesObj) { - let { left, right } = linesObj; + const { left, right } = linesObj; if (left.length !== right.length) { if (left.length > right.length) { @@ -316,11 +316,11 @@ let unresolved = 0; for (let i = 0, l = files.length; i < l; i += 1) { - let file = files[i]; + const file = files[i]; if (file.resolveMode === INTERACTIVE_RESOLVE_MODE) { let numberConflicts = 0; - let resolvedConflicts = Object.keys(file.resolutionData).length; + const resolvedConflicts = Object.keys(file.resolutionData).length; // We only check for conflicts type 'text' // since conflicts `text_editor` canĀ“t be resolved in interactive mode @@ -364,9 +364,7 @@ }; this.state.conflictsData.files.forEach((file) => { - let addFile; - - addFile = { + const addFile = { old_path: file.old_path, new_path: file.new_path }; |