From d8368705c11311df419f8c1f42cb538332e34694 Mon Sep 17 00:00:00 2001 From: Grandschtroumpf Date: Mon, 25 Feb 2019 14:46:00 +0100 Subject: [PATCH] standard --- src/app/files/fileManager.js | 2 +- src/app/tabs/test-tab.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/files/fileManager.js b/src/app/files/fileManager.js index 5d5b717b59..8e38b55408 100644 --- a/src/app/files/fileManager.js +++ b/src/app/files/fileManager.js @@ -213,7 +213,7 @@ class FileManager { // TODO : Change provider with promise return new Promise((resolve, reject) => { provider.resolveDirectory(path, (error, filesTree) => { - if(error) reject(error) + if (error) reject(error) resolve(filesTree) }) }) diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index 6e408906db..a3f63ebfc0 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -105,7 +105,7 @@ module.exports = class TestTab { } cb(null, tests) }) - .catch(err => cb(error)) + .catch(err => cb(err)) } self._deps.filePanel.event.register('newTestFileCreated', file => {