nginxinc / nginx-service-mesh

A service mesh powered by NGINX Plus to manage container traffic in Kubernetes environments.
https://docs.nginx.com/nginx-service-mesh
Apache License 2.0
93 stars 30 forks source link

Using inline error checking #272

Closed keagarwal closed 1 year ago

keagarwal commented 1 year ago

Proposed changes

Using inline error checking in the code wherever applicable, i.e. replacing all instances of the following pattern:

err = someCall()
if err != nil { doSomething... }

with:

if err = someCall(); err != nil { doSomething... }

Checklist

Before creating a PR, run through this checklist and mark each as complete.