xogroup / felicity

Javascript object constructors and sample data based on Joi schema.
Other
111 stars 9 forks source link

Remove duplicate Hoek.reach calls #99

Closed WesTyler closed 7 years ago

WesTyler commented 7 years ago

What are you trying to achieve or the steps to reproduce ?

https://github.com/xogroup/felicity/blob/master/lib/joiGenerator.js#L54

Only Hoek.reach once, then compare to the two values to assign flags.

WesTyler commented 7 years ago

Same thing here: https://github.com/xogroup/felicity/blob/master/lib/helpers.js#L589