mattermost/store/layer_generators
Agniva De Sarker 94d09e1336
Fix return nil (#15330)
* Fix return nil

A nil error is an interface having nil value but a non-nil type.
This leads to unexpected errors in the code well-documented here:
https://golang.org/doc/faq#nil_error

We fix this by passing an additional parameter to handle it.

Caught using https://github.com/dgryski/semgrep-go

* Bring back auto-generated line
2020-08-24 11:16:35 +05:30
..
main.go Fix return nil (#15330) 2020-08-24 11:16:35 +05:30
opentracing_layer.go.tmpl Fix return nil (#15330) 2020-08-24 11:16:35 +05:30
retry_layer.go.tmpl Fix return nil (#15330) 2020-08-24 11:16:35 +05:30
timer_layer.go.tmpl Fix return nil (#15330) 2020-08-24 11:16:35 +05:30