mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
client.go: format err
This commit is contained in:
parent
9a0f5ccb33
commit
5976b9c8a3
@ -256,9 +256,8 @@ func (c *mesosClient) pollMasterForState(ctx context.Context) (*mesosState, erro
|
|||||||
}
|
}
|
||||||
defer res.Body.Close()
|
defer res.Body.Close()
|
||||||
if handler, ok := tt.handlers[res.StatusCode]; ok {
|
if handler, ok := tt.handlers[res.StatusCode]; ok {
|
||||||
err1 := handler(res)
|
if err := handler(res); err != nil {
|
||||||
if err1 != nil {
|
return err
|
||||||
return err1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// no handler for this error code, proceed to the next connection type
|
// no handler for this error code, proceed to the next connection type
|
||||||
|
Loading…
Reference in New Issue
Block a user