From f843285d4950cdf4f5f048a77a60f17f0b972621 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 26 Jun 2018 17:18:56 +0100 Subject: Fixed eslint failure in IDE spec helpers --- spec/javascripts/ide/helpers.js | 4 ++-- 1 file 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'; -- cgit v1.2.1