Use "null" instead of "undefined" as no error
This commit is contained in:
parent
370dd26745
commit
a757c62da5
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ fs.lstat = (p, callback) ->
|
||||||
stats = getOrCreateArchive(asarPath).stat filePath
|
stats = getOrCreateArchive(asarPath).stat filePath
|
||||||
return callback createNotFoundError(asarPath, filePath) unless stats
|
return callback createNotFoundError(asarPath, filePath) unless stats
|
||||||
|
|
||||||
callback undefined, asarStatsToFsStats stats
|
callback null, asarStatsToFsStats stats
|
||||||
|
|
||||||
statSync = fs.statSync
|
statSync = fs.statSync
|
||||||
fs.statSync = (p) ->
|
fs.statSync = (p) ->
|
||||||
|
@ -206,7 +206,7 @@ fs.readdir = (p, callback) ->
|
||||||
return callback createNotFoundError(asarPath, filePath) unless files
|
return callback createNotFoundError(asarPath, filePath) unless files
|
||||||
|
|
||||||
process.nextTick ->
|
process.nextTick ->
|
||||||
callback undefined, files
|
callback null, files
|
||||||
|
|
||||||
readdirSync = fs.readdirSync
|
readdirSync = fs.readdirSync
|
||||||
fs.readdirSync = (p) ->
|
fs.readdirSync = (p) ->
|
||||||
|
|
Loading…
Add table
Reference in a new issue