Skip to content

Commit e21e20b

Browse files
committed
fix: resolve gocritic unlambda and formatting issues
1 parent d639ded commit e21e20b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

internal/store/deployment.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,7 @@ func deploymentMetricFamilies(allowAnnotationsList, allowLabelsList []string) []
295295
metric.Gauge,
296296
basemetrics.ALPHA,
297297
"",
298-
wrapDeploymentFunc(func(d *v1.Deployment) *metric.Family {
299-
return generateDeploymentAffinityMetrics(d)
300-
}),
298+
wrapDeploymentFunc(generateDeploymentAffinityMetrics),
301299
),
302300

303301
*generator.NewFamilyGeneratorWithStability(

internal/store/deployment_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ import (
2727

2828
var (
2929
depl1Replicas int32 = 200
30-
depl2Replicas int32 = 5
31-
depl3Replicas int32 = 1
30+
depl2Replicas int32 = 5
31+
depl3Replicas int32 = 1
3232
depl4Replicas int32 = 10
3333

3434
depl1MaxUnavailable = intstr.FromInt(10)
3535
depl2MaxUnavailable = intstr.FromString("25%")
3636

3737
depl1MaxSurge = intstr.FromInt(10)
38-
depl2MaxSurge = intstr.FromString("20%")
38+
depl2MaxSurge = intstr.FromString("20%")
3939
)
4040

4141
func TestDeploymentStore(t *testing.T) {

0 commit comments

Comments
 (0)