Skip to content

Commit b769ac0

Browse files
chetan-rnsmeeech
authored andcommitted
chore: fix lint errors reported by golangci-lint (argoproj#3458)
fix: lint errors reported by golangci-lint Signed-off-by: Chetan Banavikalmutt <[email protected]>
1 parent 2b88a33 commit b769ac0

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

controller/metrics/prommetrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ var (
135135
MetricAnalysisTemplateInfo = prometheus.NewDesc(
136136
"analysis_template_info",
137137
"Information about analysis templates.",
138-
append(namespaceNameLabels),
138+
namespaceNameLabels,
139139
nil,
140140
)
141141

rollout/canary_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,6 @@ func TestRollBackToActiveReplicaSetWithinWindow(t *testing.T) {
957957

958958
f.kubeobjects = append(f.kubeobjects, rs1, rs2)
959959
f.replicaSetLister = append(f.replicaSetLister, rs1, rs2)
960-
f.serviceLister = append(f.serviceLister)
961960

962961
// Switch back to version 1
963962
r2.Spec.Template = r1.Spec.Template
@@ -1658,8 +1657,6 @@ func TestCanaryRolloutWithInvalidPingServiceName(t *testing.T) {
16581657

16591658
f.rolloutLister = append(f.rolloutLister, r)
16601659
f.objects = append(f.objects, r)
1661-
f.kubeobjects = append(f.kubeobjects)
1662-
f.serviceLister = append(f.serviceLister)
16631660

16641661
patchIndex := f.expectPatchRolloutAction(r)
16651662
f.run(getKey(r, t))

rollout/service_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ func TestPreviewServiceNotFound(t *testing.T) {
158158
activeSvc := newService("active-svc", 80, nil, nil)
159159
notUsedPreviewSvc := newService("preview-svc", 80, nil, nil)
160160
f.kubeobjects = append(f.kubeobjects, activeSvc)
161-
f.serviceLister = append(f.serviceLister)
162161

163162
patchIndex := f.expectPatchRolloutAction(r)
164163
f.run(getKey(r, t))

0 commit comments

Comments
 (0)