Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlup committed Nov 30, 2021
1 parent fd047e8 commit 315d1bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ module.exports = fp(
if (typeof opts === 'function') {
onSend = opts;
opts = undefined;
} else if (Object.getPrototypeOf(onSend) === Object.prototype) {
} else if (
onSend !== null &&
Object.getPrototypeOf(onSend) === Object.prototype
) {
opts = onSend;
onSend = _onSend;
}
Expand Down

0 comments on commit 315d1bc

Please sign in to comment.