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)) } }