Skip to content

Commit e487f84

Browse files
authored
Remove extra error check from api key auth extension (#628)
1 parent e56d68b commit e487f84

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

extension/apikeyauthextension/authenticator.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,6 @@ func (a *authenticator) Authenticate(ctx context.Context, headers map[string][]s
240240
32, // key length
241241
sha512.New,
242242
)
243-
if err != nil {
244-
return ctx, err
245-
}
246-
247243
if cacheEntry, ok := a.cache.Get(cacheKey); ok {
248244
if subtle.ConstantTimeCompare(cacheEntry.key, derivedKey) == 0 {
249245
// Client has specified an API Key with a colliding ID,

0 commit comments

Comments
 (0)