core/lint: upgrade golangci-lint, replace interface{} with any (#5099)

* core/lint: upgrade golangci-lint, replace interface{} with any

* regen proto
This commit is contained in:
Caleb Doxsey 2024-05-02 14:33:52 -06:00 committed by GitHub
parent 614048ae9c
commit 1a5b8b606f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
135 changed files with 341 additions and 340 deletions

View file

@ -32,7 +32,7 @@ import (
type Authenticator interface {
Refresh(context.Context, *oauth2.Token, identity.State) (*oauth2.Token, error)
Revoke(context.Context, *oauth2.Token) error
UpdateUserInfo(context.Context, *oauth2.Token, interface{}) error
UpdateUserInfo(context.Context, *oauth2.Token, any) error
}
// A Manager refreshes identity information using session and user data.

View file

@ -24,7 +24,7 @@ func TestRefreshSessionScheduler(t *testing.T) {
time.Now,
sessionRefreshGracePeriod,
sessionRefreshCoolOffDuration,
func(ctx context.Context, sesionID string) {
func(_ context.Context, _ string) {
calls.Append(time.Now())
},
"S1",
@ -51,7 +51,7 @@ func TestUpdateUserInfoScheduler(t *testing.T) {
ctx := context.Background()
userUpdateInfoInterval := 100 * time.Millisecond
uuis := newUpdateUserInfoScheduler(ctx, userUpdateInfoInterval, func(ctx context.Context, userID string) {
uuis := newUpdateUserInfoScheduler(ctx, userUpdateInfoInterval, func(_ context.Context, _ string) {
calls.Append(time.Now())
}, "U1")
t.Cleanup(uuis.Stop)