Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit c1b24b0

Browse files
committed
misc: updating for standard
1 parent 7090a2f commit c1b24b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

read-json.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ function checkBinReferences_ (file, data, warn, cb) {
387387
var relName = data.bin[key]
388388
try {
389389
var binPath = path.resolve(dirName, relName)
390-
fs.exists(binPath, handleExists.bind(null, relName))
390+
fs.stat(binPath, (err) => handleExists(relName, !err))
391391
} catch (error) {
392392
if (error.message === 'Arguments to path.resolve must be strings' || error.message.indexOf('Path must be a string') === 0) {
393393
warn('Bin filename for ' + key + ' is not a string: ' + util.inspect(relName))

0 commit comments

Comments
 (0)