rm unneeded line to check empty path in resolve

pull/1342/head
bunsenstraat 3 years ago committed by davidzagi93@gmail.com
parent 6aa223243a
commit 7068a5ade2
  1. 1
      apps/remix-ide/src/app/files/fileProvider.js

@ -276,7 +276,6 @@ class FileProvider {
} }
resolveDirectory (path, callback) { resolveDirectory (path, callback) {
if (!path) return callback(null, { [this.type]: {} })
path = this.removePrefix(path) path = this.removePrefix(path)
if (path.indexOf('/') !== 0) path = '/' + path if (path.indexOf('/') !== 0) path = '/' + path

Loading…
Cancel
Save