Commit d6fd5209 authored by ioedeveloper's avatar ioedeveloper

Fixed linting error

parent 210671fb
......@@ -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 {
......
......@@ -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)
}
......
......@@ -140,7 +140,7 @@ class FileProvider {
isDirectory (path) {
const unprefixedpath = this.removePrefix(path)
return path === this.type ? true : window.remixFileSystem.statSync(unprefixedpath).isDirectory()
}
......
......@@ -128,7 +128,7 @@ module.exports = class RemixDProvider {
this.event.trigger('fileRemoved', [path])
})
})
return await this._remixd.receiveResponse(callId)
}
......
......@@ -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) {
......
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