senecajs / seneca

A microservices toolkit for Node.js.
http://senecajs.org
MIT License
3.95k stars 314 forks source link

need to provide guarantees for inputs to avoid sup... #791

Closed github-actions[bot] closed 4 years ago

github-actions[bot] commented 4 years ago

need to provide guarantees for inputs to avoid superfluous null checks

https://github.com/senecajs/seneca/blob/b04d15a2ac3e36a25b12255875a9add6021e0284/lib/outward.js#L70


  // TODO: need to provide guarantees for inputs to avoid superfluous null checks
  if (meta && null == meta.prior) {
    private$.timestats.point(ctxt.duration, ctxt.actdef.pattern)
  }
github-actions[bot] commented 4 years ago

Closed in 6d7a79515c7272184785478495f3958ed872c827