Skip to content

Commit

Permalink
More strict check for undefined (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugef authored Apr 29, 2024
1 parent 6d2dd7e commit 3ffa47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mockResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function createResponse(options = {}) {
_data = data;
}
} else {
_data += data || '';
_data += data ?? '';
}
};

Expand Down

0 comments on commit 3ffa47a

Please sign in to comment.