From d6fd520969af33b293cfa3d25ca43c5fc6214e2a Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 7 May 2020 18:14:00 +0000 Subject: [PATCH] Fixed linting error --- src/app/files/file-explorer.js | 2 +- src/app/files/fileManager.js | 4 ++-- src/app/files/fileProvider.js | 2 +- src/app/files/remixDProvider.js | 2 +- src/lib/remixd.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index 4ccbadfa31..68ef0cbb6b 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -237,7 +237,7 @@ function fileExplorer (localRegistry, files, menuItems) { async () => { const fileManager = self._deps.fileManager const removeFolder = await fileManager.remove(key) - + if (!removeFolder) { tooltip(`failed to remove ${key}. Make sure the directory is empty before removing it.`) } else { diff --git a/src/app/files/fileManager.js b/src/app/files/fileManager.js index e20b640582..3c64ffbc98 100644 --- a/src/app/files/fileManager.js +++ b/src/app/files/fileManager.js @@ -110,7 +110,7 @@ class FileManager extends Plugin { if (err) return false return result }) - + return result } @@ -199,7 +199,7 @@ class FileManager extends Plugin { async rename (oldPath, newPath) { await this.__handleExists(oldPath, `Cannot rename ${oldPath}`) const isFile = await this.isFile(oldPath) - + this.fileRenamedEvent(oldPath, newPath, !isFile) } diff --git a/src/app/files/fileProvider.js b/src/app/files/fileProvider.js index ffe14e344e..116f42b368 100644 --- a/src/app/files/fileProvider.js +++ b/src/app/files/fileProvider.js @@ -140,7 +140,7 @@ class FileProvider { isDirectory (path) { const unprefixedpath = this.removePrefix(path) - + return path === this.type ? true : window.remixFileSystem.statSync(unprefixedpath).isDirectory() } diff --git a/src/app/files/remixDProvider.js b/src/app/files/remixDProvider.js index 6333a10b51..d4c9ac866a 100644 --- a/src/app/files/remixDProvider.js +++ b/src/app/files/remixDProvider.js @@ -128,7 +128,7 @@ module.exports = class RemixDProvider { this.event.trigger('fileRemoved', [path]) }) }) - + return await this._remixd.receiveResponse(callId) } diff --git a/src/lib/remixd.js b/src/lib/remixd.js index 62fa9a6c6f..db789fc994 100644 --- a/src/lib/remixd.js +++ b/src/lib/remixd.js @@ -75,7 +75,7 @@ class Remixd { }) } - async receiveResponse(requestId) { + async receiveResponse (requestId) { return new Promise((resolve, reject) => { this.event.register('replied', (data) => { if (data.id === requestId) {