Skip to content

Commit 8e50e9a

Browse files
committed
lint
Signed-off-by: Bogdan Stancu <[email protected]>
1 parent dff25e3 commit 8e50e9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/overrides/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bytes"
55
"context"
66
"encoding/json"
7+
"errors"
78
"fmt"
89
"net/http"
910

@@ -162,7 +163,7 @@ func (a *API) getOverridesFromBucket(ctx context.Context, userID string) (map[st
162163
return result, nil
163164
}
164165
// User does not exist in config - return error
165-
return nil, fmt.Errorf(ErrUserNotFound)
166+
return nil, errors.New(ErrUserNotFound)
166167
}
167168

168169
// No tenant limits configured - return empty map (no overrides)

0 commit comments

Comments
 (0)