diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2018-03-25 21:05:54 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-03-28 13:17:02 +0300 |
commit | f00a971a6da0407d7df2f4d8d2905a711a437b4d (patch) | |
tree | 023b300bd5aaea822f79ef87076e847f1447895d /app/assets/javascripts/ide/ide_router.js | |
parent | fa3b02413b356d47fa75bab193e4d323e6db416a (diff) |
ESLint + Karma fixes
Diffstat (limited to 'app/assets/javascripts/ide/ide_router.js')
-rw-r--r-- | app/assets/javascripts/ide/ide_router.js | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/app/assets/javascripts/ide/ide_router.js b/app/assets/javascripts/ide/ide_router.js index 4f1c5988fc5..8f8f413e6cc 100644 --- a/app/assets/javascripts/ide/ide_router.js +++ b/app/assets/javascripts/ide/ide_router.js @@ -2,7 +2,6 @@ import Vue from 'vue'; import VueRouter from 'vue-router'; import flash from '~/flash'; import store from './stores'; -import { getTreeEntry } from './stores/utils'; Vue.use(VueRouter); @@ -77,9 +76,7 @@ router.beforeEach((to, from, next) => { .then(() => { if (to.params[0]) { const path = - to.params[0].slice(-1) === '/' - ? to.params[0].slice(0, -1) - : to.params[0]; + to.params[0].slice(-1) === '/' ? to.params[0].slice(0, -1) : to.params[0]; const treeEntry = store.state.entries[path]; if (treeEntry) { store.dispatch('handleTreeEntryAction', treeEntry); @@ -130,8 +127,7 @@ router.beforeEach((to, from, next) => { }) .then(() => { mrChanges.changes.forEach((change, ind) => { - const changeTreeEntry = - store.state.entries[change.new_path]; + const changeTreeEntry = store.state.entries[change.new_path]; if (changeTreeEntry) { store.dispatch('setFileMrChange', { @@ -156,16 +152,12 @@ router.beforeEach((to, from, next) => { }); }) .catch(e => { - flash( - 'Error while loading the merge request changes. Please try again.', - ); + flash('Error while loading the merge request changes. Please try again.'); throw e; }); }) .catch(e => { - flash( - 'Error while loading the branch files. Please try again.', - ); + flash('Error while loading the branch files. Please try again.'); throw e; }); }) |