Fixed linting error

uiCheck
ioedeveloper 4 years ago committed by yann300
parent 48ea0097eb
commit e526a182e2
  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