1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00

fix standard style

This commit is contained in:
Mathias Buus 2015-03-17 22:39:35 +01:00
parent bec316bda7
commit 22b23a217a

View File

@ -37,7 +37,7 @@ exports.mount = function (mnt, ops, cb) {
fs.stat(mnt, function (err, stat) { fs.stat(mnt, function (err, stat) {
if (err) return cb(new Error('Mountpoint does not exist')) if (err) return cb(new Error('Mountpoint does not exist'))
if (!stat.isDirectory()) return cb(new Error('Mountpoint is not a directory')) if (!stat.isDirectory()) return cb(new Error('Mountpoint is not a directory'))
fs.stat(path.join(mnt, '..'), function(_, parent) { fs.stat(path.join(mnt, '..'), function (_, parent) {
if (parent && parent.dev !== stat.dev) return cb(new Error('Mountpoint in use')) if (parent && parent.dev !== stat.dev) return cb(new Error('Mountpoint in use'))
fuse.mount(mnt, ops) fuse.mount(mnt, ops)
}) })