diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-08-04 15:13:32 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-08-04 15:13:32 +0300 |
commit | e9dd33330731d1cf8df1c7d76c4a161b4087941a (patch) | |
tree | d7a59450919638bea7fd044260f83aeb7f335170 /app/assets/javascripts | |
parent | a7a504b018f90cb9b23a406d310183547d0f5c95 (diff) |
eslint-fix
Diffstat (limited to 'app/assets/javascripts')
4 files changed, 9 insertions, 10 deletions
diff --git a/app/assets/javascripts/repo/components/repo_edit_button.vue b/app/assets/javascripts/repo/components/repo_edit_button.vue index 91ad7835b28..3d046d3d32d 100644 --- a/app/assets/javascripts/repo/components/repo_edit_button.vue +++ b/app/assets/javascripts/repo/components/repo_edit_button.vue @@ -37,8 +37,8 @@ export default { $('.project-refs-target-form').hide(); } }, - } -} + }, +}; </script> <template> diff --git a/app/assets/javascripts/repo/components/repo_editor.vue b/app/assets/javascripts/repo/components/repo_editor.vue index 1bd25a5b655..eb1fb46af02 100644 --- a/app/assets/javascripts/repo/components/repo_editor.vue +++ b/app/assets/javascripts/repo/components/repo_editor.vue @@ -36,7 +36,6 @@ const RepoEditor = { const newModel = this.monaco.editor.createModel(this.blobRaw, languageID); this.monacoInstance.setModel(newModel); - }).catch(Helper.loadingError); }, @@ -80,7 +79,7 @@ const RepoEditor = { dialog: { handler(obj) { - let newObj = obj; + const newObj = obj; if (newObj.status) { newObj.status = false; this.openedFiles.map((file) => { diff --git a/app/assets/javascripts/repo/components/repo_preview.vue b/app/assets/javascripts/repo/components/repo_preview.vue index edeeb9ec3a8..a10d439fb65 100644 --- a/app/assets/javascripts/repo/components/repo_preview.vue +++ b/app/assets/javascripts/repo/components/repo_preview.vue @@ -9,7 +9,7 @@ export default { computed: { html() { return this.activeFile.html; - } + }, }, watch: { @@ -17,9 +17,9 @@ export default { this.$nextTick(() => { $(this.$el).find('.file-content').syntaxHighlight(); }); - } - } -} + }, + }, +}; </script> <template> diff --git a/app/assets/javascripts/repo/helpers/repo_helper.js b/app/assets/javascripts/repo/helpers/repo_helper.js index 481d15a1cee..18088034f8d 100644 --- a/app/assets/javascripts/repo/helpers/repo_helper.js +++ b/app/assets/javascripts/repo/helpers/repo_helper.js @@ -180,8 +180,8 @@ const RepoHelper = { Store.prevURL = Service.blobURLtoParentTree(Service.url); } }).catch((e) => { - console.log(e) - RepoHelper.loadingError() + console.log(e); + RepoHelper.loadingError(); }); }, |