|
|
@ -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) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|