Commit 7f600a0c authored by ioedeveloper's avatar ioedeveloper

Fixed linting error

parent e72e6f14
...@@ -104,7 +104,7 @@ function fileExplorer (localRegistry, files, menuItems) { ...@@ -104,7 +104,7 @@ function fileExplorer (localRegistry, files, menuItems) {
self.ensureRoot(() => { self.ensureRoot(() => {
const folderpath = filepath.split('/').slice(0, -1).join('/') const folderpath = filepath.split('/').slice(0, -1).join('/')
const currentTree = self.treeView.nodeAt(folderpath) const currentTree = self.treeView.nodeAt(folderpath)
if (currentTree && self.treeView.isExpanded(folderpath)) { if (currentTree && self.treeView.isExpanded(folderpath)) {
self.files.resolveDirectory(folderpath, (error, fileTree) => { self.files.resolveDirectory(folderpath, (error, fileTree) => {
if (error) console.error(error) if (error) console.error(error)
......
...@@ -70,10 +70,10 @@ module.exports = class RemixDProvider { ...@@ -70,10 +70,10 @@ module.exports = class RemixDProvider {
return this._appManager.call('remixd', 'exists', { path: unprefixedpath }) return this._appManager.call('remixd', 'exists', { path: unprefixedpath })
.then((result) => { .then((result) => {
if(cb) return cb(null, result) if (cb) return cb(null, result)
return result return result
}).catch((error) => { }).catch((error) => {
if(cb) return cb(error) if (cb) return cb(error)
throw new Error(error) throw new Error(error)
}) })
} }
......
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