Skip to content

Commit

Permalink
Move constant to right side of comparison
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Servén Marín <lserven@gmail.com>
Signed-off-by: Matt Lawrence <m.law@apple.com>
  • Loading branch information
m-lawre and squat committed Feb 21, 2021
1 parent f3299de commit d1f984c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/receive/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (h *Handler) receiveHTTP(w http.ResponseWriter, r *http.Request) {
}

// exit early if the request contained no data
if 0 == len(wreq.Timeseries) {
if len(wreq.Timeseries) == 0 {
level.Info(h.logger).Log("msg", "empty timeseries from client", "tenant", tenant)
return
}
Expand Down

0 comments on commit d1f984c

Please sign in to comment.