1
0
mirror of https://github.com/openshift/image-registry.git synced 2026-02-05 18:45:15 +01:00

1 Commits

Author SHA1 Message Date
Oleg Bulatov
8eb3cdf2bb error getting secrets: <nil>
Assigning a typed nil to the error interface gives a non-nil value.

That breaks the common pattern `if nil != nil { ... }`.

To avoid this problem, NewError should return an interface.
2020-06-05 18:03:40 +02:00