Skip to content

Commit d454223

Browse files
committed
fix: resolve gocritic unlambda and formatting issues
1 parent c03e975 commit d454223

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
@@ -332,9 +332,7 @@ func deploymentMetricFamilies(allowAnnotationsList, allowLabelsList []string) []
332332
metric.Gauge,
333333
basemetrics.ALPHA,
334334
"",
335-
wrapDeploymentFunc(func(d *v1.Deployment) *metric.Family {
336-
return generateDeploymentAffinityMetrics(d)
337-
}),
335+
wrapDeploymentFunc(generateDeploymentAffinityMetrics),
338336
),
339337

340338
*generator.NewFamilyGeneratorWithStability(

internal/store/deployment_test.go

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

3131
var (
3232
depl1Replicas int32 = 200
33-
depl2Replicas int32 = 5
34-
depl3Replicas int32 = 1
33+
depl2Replicas int32 = 5
34+
depl3Replicas int32 = 1
3535
depl4Replicas int32 = 10
3636

3737
depl1MaxUnavailable = intstr.FromInt(10)
3838
depl2MaxUnavailable = intstr.FromString("25%")
3939

4040
depl1MaxSurge = intstr.FromInt(10)
41-
depl2MaxSurge = intstr.FromString("20%")
41+
depl2MaxSurge = intstr.FromString("20%")
4242
)
4343

4444
func TestDeploymentStore(t *testing.T) {

0 commit comments

Comments
 (0)