fix(format): use correct type for local

This commit is contained in:
Julien Fontanet 2016-05-11 12:49:29 +02:00
parent 189900549a
commit 4c96e44b9b

View File

@ -31,7 +31,7 @@ export const parse = (remote) => {
}
export const format = ({type, host, path, username, password, domain}) => {
let url = `${type}://`
let url = `${type === 'local' ? 'file' : type}://`
if (type === 'nfs') {
url += `${host}:`
}