Commit 1d5a3065 authored by Mike Greiling's avatar Mike Greiling

resolve eslint violations

parent 7572aaf3
...@@ -216,7 +216,7 @@ const RepoHelper = { ...@@ -216,7 +216,7 @@ const RepoHelper = {
serializeRepoEntity(type, entity) { serializeRepoEntity(type, entity) {
const { url, name, icon, last_commit } = entity; const { url, name, icon, last_commit } = entity;
let returnObj = { const returnObj = {
type, type,
name, name,
url, url,
...@@ -225,7 +225,7 @@ const RepoHelper = { ...@@ -225,7 +225,7 @@ const RepoHelper = {
loading: false, loading: false,
}; };
if(entity.last_commit){ if (entity.last_commit) {
returnObj.lastCommitUrl = `${Store.projectUrl}/commit/${last_commit.id}`; returnObj.lastCommitUrl = `${Store.projectUrl}/commit/${last_commit.id}`;
} else { } else {
returnObj.lastCommitUrl = ''; returnObj.lastCommitUrl = '';
...@@ -289,7 +289,7 @@ const RepoHelper = { ...@@ -289,7 +289,7 @@ const RepoHelper = {
return Store.openedFiles.find(openedFile => Store.activeFile.url === openedFile.url); return Store.openedFiles.find(openedFile => Store.activeFile.url === openedFile.url);
}, },
loadingError(e) { loadingError() {
Flash('Unable to load the file at this time.'); Flash('Unable to load the file at this time.');
}, },
}; };
......
...@@ -2,7 +2,7 @@ import Vue from 'vue'; ...@@ -2,7 +2,7 @@ import Vue from 'vue';
import RepoStore from '~/repo/stores/repo_store'; import RepoStore from '~/repo/stores/repo_store';
import repoSidebar from '~/repo/components/repo_sidebar.vue'; import repoSidebar from '~/repo/components/repo_sidebar.vue';
fdescribe('RepoSidebar', () => { describe('RepoSidebar', () => {
function createComponent() { function createComponent() {
const RepoSidebar = Vue.extend(repoSidebar); const RepoSidebar = Vue.extend(repoSidebar);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment