Skip to content

Commit

Permalink
style: automatic fixes for new ESLint rules
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Nov 2, 2024
1 parent 861d724 commit 9ceec51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function streamCompare(stream1, stream2, optionsOrCompare) {
if (typeof options.readPolicy !== 'string') {
throw new TypeError('options.readPolicy must be a string');
}
if (!hasOwnProperty.call(ReadPolicy, options.readPolicy)) {
if (!Object.hasOwn(ReadPolicy, options.readPolicy)) {
throw new RangeError(`Invalid options.readPolicy '${
options.readPolicy}'`);
}
Expand Down

0 comments on commit 9ceec51

Please sign in to comment.