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:
parent
bec316bda7
commit
22b23a217a
2
index.js
2
index.js
@ -37,7 +37,7 @@ exports.mount = function (mnt, ops, cb) {
|
||||
fs.stat(mnt, function (err, stat) {
|
||||
if (err) return cb(new Error('Mountpoint does not exist'))
|
||||
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'))
|
||||
fuse.mount(mnt, ops)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user