Skip to content

Commit

Permalink
fixed go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Korolyov committed Jan 10, 2019
1 parent bac9b7b commit fcf0b75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storages/inmemory.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ func (m *InmemoryStorage) load(ctx context.Context, containerID string) (info co
req = req.WithContext(ctx)
resp, err := m.httpc.Do(req)
if err != nil {
panic(err.Error())
return info, errors.Wrapf(err, "failed to get container %s json", containerID)
panic(errors.Wrapf(err, "failed to get container %s json", containerID))
}
defer resp.Body.Close()

Expand Down

0 comments on commit fcf0b75

Please sign in to comment.