Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-07 23:10:09 +0300
committerMike Greiling <mike@pixelcog.com>2017-08-07 23:10:09 +0300
commit1d5a306596e56398c3f6f46feafd1f4ce23c3c2c (patch)
tree39306862568e3162d1f0132c2c24923e307e3ecb
parent7572aaf352df238718416624282c8649ef142ca9 (diff)
resolve eslint violations
-rw-r--r--app/assets/javascripts/repo/helpers/repo_helper.js6
-rw-r--r--spec/javascripts/repo/components/repo_sidebar_spec.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/repo/helpers/repo_helper.js b/app/assets/javascripts/repo/helpers/repo_helper.js
index 72436688f87..c46c12afa60 100644
--- a/app/assets/javascripts/repo/helpers/repo_helper.js
+++ b/app/assets/javascripts/repo/helpers/repo_helper.js
@@ -216,7 +216,7 @@ const RepoHelper = {
serializeRepoEntity(type, entity) {
const { url, name, icon, last_commit } = entity;
- let returnObj = {
+ const returnObj = {
type,
name,
url,
@@ -225,7 +225,7 @@ const RepoHelper = {
loading: false,
};
- if(entity.last_commit){
+ if (entity.last_commit) {
returnObj.lastCommitUrl = `${Store.projectUrl}/commit/${last_commit.id}`;
} else {
returnObj.lastCommitUrl = '';
@@ -289,7 +289,7 @@ const RepoHelper = {
return Store.openedFiles.find(openedFile => Store.activeFile.url === openedFile.url);
},
- loadingError(e) {
+ loadingError() {
Flash('Unable to load the file at this time.');
},
};
diff --git a/spec/javascripts/repo/components/repo_sidebar_spec.js b/spec/javascripts/repo/components/repo_sidebar_spec.js
index 26ed39ae229..0d216c9c026 100644
--- a/spec/javascripts/repo/components/repo_sidebar_spec.js
+++ b/spec/javascripts/repo/components/repo_sidebar_spec.js
@@ -2,7 +2,7 @@ import Vue from 'vue';
import RepoStore from '~/repo/stores/repo_store';
import repoSidebar from '~/repo/components/repo_sidebar.vue';
-fdescribe('RepoSidebar', () => {
+describe('RepoSidebar', () => {
function createComponent() {
const RepoSidebar = Vue.extend(repoSidebar);