mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(readify) add funcEmpty
This commit is contained in:
parent
df2fe7258a
commit
fa9ced60fc
1 changed files with 3 additions and 1 deletions
|
|
@ -11,6 +11,8 @@
|
|||
tryRequire = require(DIR_SERVER + 'tryRequire'),
|
||||
nicki = tryRequire('nicki', {callback: true}),
|
||||
|
||||
funcEmpty = function() {},
|
||||
|
||||
WIN = process.platform === 'win32';
|
||||
|
||||
module.exports = function(path, callback) {
|
||||
|
|
@ -54,7 +56,7 @@
|
|||
callback(null, data || {
|
||||
'mode' : 0,
|
||||
'size' : 0,
|
||||
'isDirectory' : function() {}
|
||||
'isDirectory' : funcEmpty
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue