Skip to content

Commit 06195e0

Browse files
committed
lint2
Signed-off-by: Bogdan Stancu <stancu.bogdan.nicolae@gmail.com>
1 parent 8e50e9a commit 06195e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/overrides/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818

1919
const (
2020
// Error messages
21-
ErrInvalidJSON = "Invalid JSON"
22-
ErrUserNotFound = "User not found"
21+
ErrInvalidJSON = "invalid JSON"
22+
ErrUserNotFound = "user not found"
2323

2424
// Runtime config errors
2525
ErrRuntimeConfig = "runtime config read error"
@@ -54,7 +54,7 @@ func (a *API) GetOverrides(w http.ResponseWriter, r *http.Request) {
5454
overrides, err := a.getOverridesFromBucket(r.Context(), userID)
5555
if err != nil {
5656
if err.Error() == ErrUserNotFound {
57-
http.Error(w, "User not found", http.StatusBadRequest)
57+
http.Error(w, "user not found", http.StatusBadRequest)
5858
} else {
5959
level.Error(a.logger).Log("msg", "failed to get overrides from bucket", "userID", userID, "err", err)
6060
http.Error(w, "Internal server error", http.StatusInternalServerError)

0 commit comments

Comments
 (0)