Commit 5976b9c8 authored by fangyuhao [方宇浩]'s avatar fangyuhao [方宇浩]

client.go: format err

parent 9a0f5ccb
...@@ -256,9 +256,8 @@ func (c *mesosClient) pollMasterForState(ctx context.Context) (*mesosState, erro ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment