remove unneeded check

pull/1/head
yann300 7 years ago
parent 5dd74bc9f6
commit 69a79d01ae
  1. 3
      src/app/files/shared-folder.js

@ -159,9 +159,8 @@ module.exports = class SharedFolder {
resolveDirectory (path, callback) {
var self = this
if (path[0] === '/') path = path.substring(1)
if (path[0] === '.' && path[1] === '/') path = path.substring(2)
if (!path) return callback(null, { [self.type]: { } })
path = self.removePrefix('' + (path || ''))
path = self.removePrefix(path)
self.remixd.dir(path, callback)
}
}

Loading…
Cancel
Save