Commit b5f2adf1 authored by Phil Hughes's avatar Phil Hughes

fixed eslint

parent e5d42a0f
...@@ -56,8 +56,6 @@ export const getBranchData = ( ...@@ -56,8 +56,6 @@ export const getBranchData = (
resolve(data); resolve(data);
}) })
.catch(e => { .catch(e => {
let flashMessage = __('Error loading branch data. Please try again.');
if (e.response.status === 404) { if (e.response.status === 404) {
dispatch('showBranchNotFoundError', branchId); dispatch('showBranchNotFoundError', branchId);
} else { } else {
......
...@@ -62,7 +62,7 @@ export const getLastCommitData = ({ state, commit, dispatch }, tree = state) => ...@@ -62,7 +62,7 @@ export const getLastCommitData = ({ state, commit, dispatch }, tree = state) =>
.catch(() => flash('Error fetching log data.', 'alert', document, null, false, true)); .catch(() => flash('Error fetching log data.', 'alert', document, null, false, true));
}; };
export const getFiles = ({ state, commit }, { projectId, branchId } = {}) => export const getFiles = ({ state, commit, dispatch }, { projectId, branchId } = {}) =>
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
if (!state.trees[`${projectId}/${branchId}`]) { if (!state.trees[`${projectId}/${branchId}`]) {
const selectedProject = state.projects[projectId]; const selectedProject = state.projects[projectId];
......
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