Skip to content

Commit 87d28ba

Browse files
committed
*: S1008
1 parent dbe4e23 commit 87d28ba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/auth/authorizations.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ func (a *State) IsAllowed(topic, channel string) bool {
7171
}
7272

7373
func (a *State) IsExpired() bool {
74-
if a.Expires.Before(time.Now()) {
75-
return true
76-
}
77-
return false
74+
return a.Expires.Before(time.Now())
7875
}
7976

8077
func QueryAnyAuthd(authd []string, remoteIP string, tlsEnabled bool, commonName string, authSecret string,

0 commit comments

Comments
 (0)