Fixed linting error

pull/11/head
ioedeveloper 4 years ago
parent e72e6f1423
commit 7f600a0c09
  1. 2
      apps/remix-ide/src/app/files/file-explorer.js
  2. 4
      apps/remix-ide/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