Skip to content

Commit e14b5d3

Browse files
committed
Remove non-functional conditional
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
1 parent 0013aad commit e14b5d3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/authentication/authenticators.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ func withClusterScope(delegate authenticator.Request) authenticator.Request {
4747
if extra == nil {
4848
extra = map[string][]string{}
4949
}
50-
if true {
51-
extra["authentication.kcp.io/scopes"] = append(extra["authentication.kcp.io/scopes"], fmt.Sprintf("cluster:%s", cluster))
52-
}
50+
extra["authentication.kcp.io/scopes"] = append(extra["authentication.kcp.io/scopes"], fmt.Sprintf("cluster:%s", cluster))
5351

5452
response.User = &user.DefaultInfo{
5553
Name: response.User.GetName(),

0 commit comments

Comments
 (0)