Skip to content

Commit

Permalink
Fix lint violations for no-eq-null
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Oct 8, 2018
1 parent e0b7240 commit 6e63ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinon/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function assertType(value, type, name) {
}

function assertMethodExists(value, method, name, methodPath) {
if (value[method] == null) {
if (typeof value[method] === "undefined") {
throw new TypeError("Expected " + name + " to have method " + methodPath);
}
}
Expand Down

0 comments on commit 6e63ba8

Please sign in to comment.