Skip to content

Commit

Permalink
fix: use undefined instead of null for readdir options
Browse files Browse the repository at this point in the history
Fixes #223
  • Loading branch information
dsanders11 committed Jun 26, 2022
1 parent 1f19b0b commit 5a71819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graceful-fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function patch (fs) {
var noReaddirOptionVersions = /^v[0-5]\./
function readdir (path, options, cb) {
if (typeof options === 'function')
cb = options, options = null
cb = options, options = undefined

var go$readdir = noReaddirOptionVersions.test(process.version)
? function go$readdir (path, options, cb, startTime) {
Expand Down

0 comments on commit 5a71819

Please sign in to comment.