mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-02 10:52:49 +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
|
@ -21,7 +21,7 @@ func TestLayeredConfig(t *testing.T) {
|
|||
|
||||
t.Run("error on initial build", func(t *testing.T) {
|
||||
underlying := config.NewStaticSource(&config.Config{})
|
||||
_, err := config.NewLayeredSource(ctx, underlying, func(c *config.Config) error {
|
||||
_, err := config.NewLayeredSource(ctx, underlying, func(_ *config.Config) error {
|
||||
return errors.New("error")
|
||||
})
|
||||
require.Error(t, err)
|
||||
|
@ -39,7 +39,7 @@ func TestLayeredConfig(t *testing.T) {
|
|||
|
||||
var dst atomic.Pointer[config.Config]
|
||||
dst.Store(layered.GetConfig())
|
||||
layered.OnConfigChange(ctx, func(ctx context.Context, c *config.Config) {
|
||||
layered.OnConfigChange(ctx, func(_ context.Context, c *config.Config) {
|
||||
dst.Store(c)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue