Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Shannon <contact@robert.sh>
  • Loading branch information
Bob Shannon committed Apr 9, 2018
1 parent bb8ac5a commit ab88a61
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions api/prometheus/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,7 @@ func (h *httpAPI) DeleteSeries(ctx context.Context, matches []string, startTime
}

_, _, err = h.client.Do(ctx, req)
if err != nil {
return err
}

return nil
return err
}

func (h *httpAPI) CleanTombstones(ctx context.Context) error {
Expand All @@ -310,11 +306,8 @@ func (h *httpAPI) CleanTombstones(ctx context.Context) error {
return err
}

if _, _, err = h.client.Do(ctx, req); err != nil {
return err
}

return nil
_, _, err = h.client.Do(ctx, req)
return err
}

// apiClient wraps a regular client and processes successful API responses.
Expand Down

0 comments on commit ab88a61

Please sign in to comment.