mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-17 00:36:09 +02:00
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:
parent
614048ae9c
commit
1a5b8b606f
135 changed files with 341 additions and 340 deletions
|
@ -19,7 +19,7 @@ func TestCache(t *testing.T) {
|
|||
|
||||
var testToken *token.Token
|
||||
var testError error
|
||||
fetcher := func(ctx context.Context, refreshToken string) (*token.Token, error) {
|
||||
fetcher := func(_ context.Context, _ string) (*token.Token, error) {
|
||||
if testToken != nil {
|
||||
token := *testToken
|
||||
return &token, nil
|
||||
|
@ -54,7 +54,7 @@ func TestCache(t *testing.T) {
|
|||
t.Run("token cannot fit minTTL", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
fetcher := func(ctx context.Context, refreshToken string) (*token.Token, error) {
|
||||
fetcher := func(_ context.Context, _ string) (*token.Token, error) {
|
||||
return &token.Token{"ok-bearer", time.Now().Add(time.Minute)}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue