Commit f30916fc authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'eslint-fix' into 'master'

Fixed eslint failure in IDE spec helpers

Closes #48490

See merge request gitlab-org/gitlab-ce!20182
parents 8bf15ef4 f843285d
......@@ -27,7 +27,7 @@ export const file = (name = 'name', id = name, type = '', parent = null) =>
lastCommit: {},
});
export const createEntriesFromPaths = (paths) =>
export const createEntriesFromPaths = paths =>
paths
.map(path => ({
name: pathUtils.basename(path),
......@@ -35,7 +35,7 @@ export const createEntriesFromPaths = (paths) =>
ext: pathUtils.extname(path),
}))
.reduce((entries, path, idx) => {
const name = path.name;
const { name } = path;
const parent = path.dir ? entries[path.dir] : null;
const type = path.ext ? 'blob' : 'tree';
......
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