Commit 69a79d01 authored by yann300's avatar yann300

remove unneeded check

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