diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-06-26 16:54:32 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-06-26 16:54:32 +0000 |
commit | f30916fcd6a71ee40d11f037f892858cb6aa45ad (patch) | |
tree | 45607abfb1893c37cb87ec04f9859cd8bd7c294a | |
parent | 8bf15ef4afa1834365eaeabbe8fc269108181e5c (diff) | |
parent | f843285d4950cdf4f5f048a77a60f17f0b972621 (diff) | |
download | gitlab-ce-f30916fcd6a71ee40d11f037f892858cb6aa45ad.tar.gz |
Merge branch 'eslint-fix' into 'master'
Fixed eslint failure in IDE spec helpers
Closes #48490
See merge request gitlab-org/gitlab-ce!20182
-rw-r--r-- | spec/javascripts/ide/helpers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/ide/helpers.js b/spec/javascripts/ide/helpers.js index b5a72d4bd6f..569fa5c7aae 100644 --- a/spec/javascripts/ide/helpers.js +++ b/spec/javascripts/ide/helpers.js @@ -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'; |