Merge pull request #45653 from x1957/format

Automatic merge from submit-queue (batch tested with PRs 45653, 45719, 45729, 45730, 44250)

client.go: format err

**What this PR does / why we need it:**
made the code clean
This commit is contained in:
Kubernetes Submit Queue
2017-05-12 12:12:41 -07:00
committed by GitHub

View File

@@ -256,9 +256,8 @@ func (c *mesosClient) pollMasterForState(ctx context.Context) (*mesosState, erro
}
defer res.Body.Close()
if handler, ok := tt.handlers[res.StatusCode]; ok {
err1 := handler(res)
if err1 != nil {
return err1
if err := handler(res); err != nil {
return err
}
}
// no handler for this error code, proceed to the next connection type