mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-17 17:46:13 +02:00
Add error checks per report from errcheck-ng
This commit is contained in:
committed by
Oleksii Kliukin
parent
292a9bda05
commit
bc0e9ab4bc
@@ -56,7 +56,9 @@ func KubernetesRestClient(c *rest.Config) (*rest.RESTClient, error) {
|
||||
)
|
||||
return nil
|
||||
})
|
||||
schemeBuilder.AddToScheme(api.Scheme)
|
||||
if err := schemeBuilder.AddToScheme(api.Scheme); err != nil {
|
||||
return nil, fmt.Errorf("could not apply functions to register PostgreSQL TPR type: %v", err)
|
||||
}
|
||||
|
||||
return rest.RESTClientFor(c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user