Return instead of throw

master
Sven Slootweg 4 years ago
parent 10ffacba5e
commit ab0889eb8b

@ -5,6 +5,6 @@ const isString = require("is-string");
module.exports = function (value) {
if (!isString(value)) {
throw new ValidationError("Must be a string");
return new ValidationError("Must be a string");
}
};

Loading…
Cancel
Save