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
path: root/app
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 /app
parent7572aaf352df238718416624282c8649ef142ca9 (diff)
resolve eslint violations
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/repo/helpers/repo_helper.js6
1 files changed, 3 insertions, 3 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.');
},
};