Commit d6fd5209 authored by ioedeveloper's avatar ioedeveloper

Fixed linting error

parent 210671fb
...@@ -237,7 +237,7 @@ function fileExplorer (localRegistry, files, menuItems) { ...@@ -237,7 +237,7 @@ function fileExplorer (localRegistry, files, menuItems) {
async () => { async () => {
const fileManager = self._deps.fileManager const fileManager = self._deps.fileManager
const removeFolder = await fileManager.remove(key) const removeFolder = await fileManager.remove(key)
if (!removeFolder) { if (!removeFolder) {
tooltip(`failed to remove ${key}. Make sure the directory is empty before removing it.`) tooltip(`failed to remove ${key}. Make sure the directory is empty before removing it.`)
} else { } else {
......
...@@ -110,7 +110,7 @@ class FileManager extends Plugin { ...@@ -110,7 +110,7 @@ class FileManager extends Plugin {
if (err) return false if (err) return false
return result return result
}) })
return result return result
} }
...@@ -199,7 +199,7 @@ class FileManager extends Plugin { ...@@ -199,7 +199,7 @@ class FileManager extends Plugin {
async rename (oldPath, newPath) { async rename (oldPath, newPath) {
await this.__handleExists(oldPath, `Cannot rename ${oldPath}`) await this.__handleExists(oldPath, `Cannot rename ${oldPath}`)
const isFile = await this.isFile(oldPath) const isFile = await this.isFile(oldPath)
this.fileRenamedEvent(oldPath, newPath, !isFile) this.fileRenamedEvent(oldPath, newPath, !isFile)
} }
......
...@@ -140,7 +140,7 @@ class FileProvider { ...@@ -140,7 +140,7 @@ class FileProvider {
isDirectory (path) { isDirectory (path) {
const unprefixedpath = this.removePrefix(path) const unprefixedpath = this.removePrefix(path)
return path === this.type ? true : window.remixFileSystem.statSync(unprefixedpath).isDirectory() return path === this.type ? true : window.remixFileSystem.statSync(unprefixedpath).isDirectory()
} }
......
...@@ -128,7 +128,7 @@ module.exports = class RemixDProvider { ...@@ -128,7 +128,7 @@ module.exports = class RemixDProvider {
this.event.trigger('fileRemoved', [path]) this.event.trigger('fileRemoved', [path])
}) })
}) })
return await this._remixd.receiveResponse(callId) return await this._remixd.receiveResponse(callId)
} }
......
...@@ -75,7 +75,7 @@ class Remixd { ...@@ -75,7 +75,7 @@ class Remixd {
}) })
} }
async receiveResponse(requestId) { async receiveResponse (requestId) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.event.register('replied', (data) => { this.event.register('replied', (data) => {
if (data.id === requestId) { if (data.id === requestId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment