Skip to content

Commit 13a0386

Browse files
committed
Removed useless checks
1 parent 6c7139f commit 13a0386

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

index.js

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ function mkdir(path, callback)
2929
}
3030

3131
/**
32-
* Asynchronous function for creating a
33-
* directory and then mount the `dev` file to it
32+
* Asynchronously create a directory and then mount the filesystem on it
3433
*
3534
* @example
3635
* mkdirMount('path/to/my/dir', 'type', {devFile: 'path/to/my/dev'},
@@ -52,20 +51,6 @@ function mkdir(path, callback)
5251
*/
5352
function mkdirMount(path, type, flags, extras, callback)
5453
{
55-
if(flags && (flags.constructor.name === 'Object' || flags instanceof Function))
56-
{
57-
callback = extras
58-
extras = flags
59-
flags = null
60-
}
61-
62-
if(extras instanceof Function)
63-
{
64-
callback = extras
65-
extras = null
66-
}
67-
68-
6954
mkdir(path, function(error)
7055
{
7156
if(error) return callback(error)
@@ -96,20 +81,6 @@ function mkdirMount(path, type, flags, extras, callback)
9681
*/
9782
function mountfs(path, type, flags, extras, callback)
9883
{
99-
if(flags && (flags.constructor.name === 'Object' || flags instanceof Function))
100-
{
101-
callback = extras
102-
extras = flags
103-
flags = null
104-
}
105-
106-
if(extras instanceof Function)
107-
{
108-
callback = extras
109-
extras = null
110-
}
111-
112-
11384
fs.stat('/.dockerinit', function(error)
11485
{
11586
// Running on Docker?

0 commit comments

Comments
 (0)