mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-24 22:47:14 +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
|
@ -14,7 +14,7 @@ func TestLocalCache(t *testing.T) {
|
|||
defer clearTimeout()
|
||||
|
||||
callCount := 0
|
||||
update := func(ctx context.Context) ([]byte, error) {
|
||||
update := func(_ context.Context) ([]byte, error) {
|
||||
callCount++
|
||||
return []byte("v1"), nil
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ func TestGlobalCache(t *testing.T) {
|
|||
defer clearTimeout()
|
||||
|
||||
callCount := 0
|
||||
update := func(ctx context.Context) ([]byte, error) {
|
||||
update := func(_ context.Context) ([]byte, error) {
|
||||
callCount++
|
||||
return []byte("v1"), nil
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ func TestGlobalCache(t *testing.T) {
|
|||
assert.Equal(t, 2, callCount)
|
||||
|
||||
assert.Eventually(t, func() bool {
|
||||
_, err := c.GetOrUpdate(ctx, []byte("k1"), func(ctx context.Context) ([]byte, error) {
|
||||
_, err := c.GetOrUpdate(ctx, []byte("k1"), func(_ context.Context) ([]byte, error) {
|
||||
return nil, fmt.Errorf("ERROR")
|
||||
})
|
||||
return err != nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue