Skip to content
Prev Previous commit
Next Next commit
fix: check falsy instead of explicit check
  • Loading branch information
efekrskl committed Mar 4, 2026
commit 3aaa707c37f77fa7593e95952b8ae4dddf985b51
2 changes: 1 addition & 1 deletion lib/internal/fs/recursive_watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class FSWatcher extends EventEmitter {
this.#watchFolder(filename);
}
} catch (error) {
if (this.#options.throwIfNoEntry !== false && error.code === 'ENOENT') {
if (!this.#options.throwIfNoEntry && error.code === 'ENOENT') {
error.filename = filename;
throw error;
}
Expand Down
Loading