Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanceYu committed May 17, 2019
1 parent fbf6e91 commit 6ef72d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
}else if(typeof value === 'boolean'){
return true
}
return value && value.length > 0
return !!(value && value.length > 0)
}
},
/**
Expand Down

0 comments on commit 6ef72d8

Please sign in to comment.