Skip to content

Commit f5c9ab5

Browse files
committed
style(golangci-lint): adressing meta linters errors
Signed-off-by: Dario Tranchitella <dario@tranchitella.eu>
1 parent fa9be9d commit f5c9ab5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

internal/request/http.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ func (h http) processBearerToken() (username string, groups []string, err error)
132132
if err != nil {
133133
return "", nil, err
134134
}
135+
135136
tr := &authenticationv1.TokenReview{
136137
Spec: authenticationv1.TokenReviewSpec{
137138
Token: token,

internal/request/http_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ func Test_http_GetUserAndGroups(t *testing.T) {
171171
usernameClaimField: "",
172172
client: testClient(func(ctx context.Context, obj client.Object) error {
173173
tr := obj.(*authenticationv1.TokenReview)
174+
174175
if tr.Spec.Token == "asdf" {
175176
tr.Status.Authenticated = true
176177

@@ -198,8 +199,9 @@ func Test_http_GetUserAndGroups(t *testing.T) {
198199
usernameClaimField: "",
199200
client: testClient(func(ctx context.Context, obj client.Object) error {
200201
tr := obj.(*authenticationv1.TokenReview)
201-
if tr.Spec.Token == "asdf" {
202+
if tr.Spec.Token == "fdsa" {
202203
tr.Status.Authenticated = true
204+
203205
return nil
204206
}
205207

0 commit comments

Comments
 (0)