Skip to content

Commit

Permalink
fix(schema) Fixes issue with falsy value
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgosera committed Oct 22, 2015
1 parent ae9e9b5 commit bd97b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Schema.prototype.create = function(obj, schema){
}

// Skip if this is a not defined property
if (!value) {
if (_.isUndefined(value)) {
return;
};

Expand Down

0 comments on commit bd97b95

Please sign in to comment.