coopernurse / node-pool

Generic resource pooling for node.js
2.38k stars 259 forks source link

Execute only if validator is available #163

Closed pasupulaphani closed 7 years ago

sandfox commented 7 years ago

if no factory.validator is supplied by the user then it defaults to a noop function, therefore this extra check you've added will always pass in that situation.

pasupulaphani commented 7 years ago

closing as this is not required.