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

Commit

Permalink
misc: updating for standard
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Mar 8, 2018
1 parent 7090a2f commit c1b24b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion read-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function checkBinReferences_ (file, data, warn, cb) {
var relName = data.bin[key]
try {
var binPath = path.resolve(dirName, relName)
fs.exists(binPath, handleExists.bind(null, relName))
fs.stat(binPath, (err) => handleExists(relName, !err))
} catch (error) {
if (error.message === 'Arguments to path.resolve must be strings' || error.message.indexOf('Path must be a string') === 0) {
warn('Bin filename for ' + key + ' is not a string: ' + util.inspect(relName))
Expand Down

0 comments on commit c1b24b0

Please sign in to comment.