Skip to content

Commit

Permalink
refactor: remove usage of _.isNull
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed Mar 9, 2024
1 parent 6a0c815 commit 7a6f484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function validateArrayItem(item, idx, schema, current) {
return [{path, message: `"${formatPath(path)}" is undefined.`}];
}

if (_.isNull(item)) {
if (item === null) {
return [{path, message: `"${formatPath(path)}" is null.`}];
}

Expand Down

0 comments on commit 7a6f484

Please sign in to comment.