Fixed eslint failure in IDE spec helpers
This commit is contained in:
parent
8bf15ef4af
commit
f843285d49
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ export const file = (name = 'name', id = name, type = '', parent = null) =>
|
||||||
lastCommit: {},
|
lastCommit: {},
|
||||||
});
|
});
|
||||||
|
|
||||||
export const createEntriesFromPaths = (paths) =>
|
export const createEntriesFromPaths = paths =>
|
||||||
paths
|
paths
|
||||||
.map(path => ({
|
.map(path => ({
|
||||||
name: pathUtils.basename(path),
|
name: pathUtils.basename(path),
|
||||||
|
@ -35,7 +35,7 @@ export const createEntriesFromPaths = (paths) =>
|
||||||
ext: pathUtils.extname(path),
|
ext: pathUtils.extname(path),
|
||||||
}))
|
}))
|
||||||
.reduce((entries, path, idx) => {
|
.reduce((entries, path, idx) => {
|
||||||
const name = path.name;
|
const { name } = path;
|
||||||
const parent = path.dir ? entries[path.dir] : null;
|
const parent = path.dir ? entries[path.dir] : null;
|
||||||
const type = path.ext ? 'blob' : 'tree';
|
const type = path.ext ? 'blob' : 'tree';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue