Fixed linting error

pull/5370/head
ioedeveloper 4 years ago committed by yann300
parent 1bf9253e4e
commit cc80763631
  1. 2
      src/app/files/file-explorer.js
  2. 4
      src/app/files/remixDProvider.js

@ -104,7 +104,7 @@ function fileExplorer (localRegistry, files, menuItems) {
self.ensureRoot(() => {
const folderpath = filepath.split('/').slice(0, -1).join('/')
const currentTree = self.treeView.nodeAt(folderpath)
if (currentTree && self.treeView.isExpanded(folderpath)) {
self.files.resolveDirectory(folderpath, (error, fileTree) => {
if (error) console.error(error)

@ -70,10 +70,10 @@ module.exports = class RemixDProvider {
return this._appManager.call('remixd', 'exists', { path: unprefixedpath })
.then((result) => {
if(cb) return cb(null, result)
if (cb) return cb(null, result)
return result
}).catch((error) => {
if(cb) return cb(error)
if (cb) return cb(error)
throw new Error(error)
})
}

Loading…
Cancel
Save