From 7a3725356c51d58d078997979e0f9c8b94b623e2 Mon Sep 17 00:00:00 2001 From: Roman Mazur Date: Thu, 8 Jan 2026 22:52:32 +0100 Subject: [PATCH] remove redundant nil check authenticator feedID method already checks if feed is nil --- authenticator.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/authenticator.go b/authenticator.go index 25b27e4..4f5a743 100644 --- a/authenticator.go +++ b/authenticator.go @@ -57,12 +57,7 @@ func (a authenticator) feedID(feed Feed) string { func (a authenticator) feedAuth(resource resource, feed Feed) authFunc { return func(req *http.Request) error { - var feedID string - if feed != nil { - feedID = a.feedID(feed) - } else { - feedID = "*" - } + feedID := a.feedID(feed) return a.jwtSignRequest(req, a.jwtFeedClaims(resource, actions[req.Method], feedID)) } }