Fixed linting error

pull/4/head
ioedeveloper 5 years ago
parent 210671fb27
commit d6fd520969
  1. 2
      src/app/files/file-explorer.js
  2. 4
      src/app/files/fileManager.js
  3. 2
      src/app/files/fileProvider.js
  4. 2
      src/app/files/remixDProvider.js
  5. 2
      src/lib/remixd.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 {

@ -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) {

Loading…
Cancel
Save