leepowelldev / mongoose-validator

Validators for mongoose models utilising validator.js
MIT License
379 stars 43 forks source link

Patch 2 #2

Closed cesconix closed 11 years ago

cesconix commented 11 years ago

I suggest you do it as minimal as possible, without redefining variables. Like this?

leepowelldev commented 11 years ago

Not sure, I prefer the readability of defining the variables at the top of the function.