From 7ee1111e526dae6364371c49df7d6d7a664e4603 Mon Sep 17 00:00:00 2001 From: Stavros Kontopoulos Date: Mon, 20 Jan 2025 10:36:04 +0200 Subject: [PATCH] Revert "lint" This reverts commit 0334fc2591ce80ddaed8d61f54cfb74cdf905835. --- pkg/queue/protobuf_stats_reporter_test.go | 1 - pkg/reconciler/route/route.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/queue/protobuf_stats_reporter_test.go b/pkg/queue/protobuf_stats_reporter_test.go index 7c4abec7dec5..d12c39620040 100644 --- a/pkg/queue/protobuf_stats_reporter_test.go +++ b/pkg/queue/protobuf_stats_reporter_test.go @@ -139,7 +139,6 @@ func scrapeProtobufStat(t *testing.T, r *ProtobufStatsReporter) metrics.Stat { w := httptest.NewRecorder() r.ServeHTTP(w, nil) result := w.Result() - defer result.Body.Close() if result.StatusCode != http.StatusOK { t.Fatalf("Expected ServeHTTP status %d but was %d", http.StatusOK, result.StatusCode) } diff --git a/pkg/reconciler/route/route.go b/pkg/reconciler/route/route.go index a65aa4be4250..ecdd60e06ed2 100644 --- a/pkg/reconciler/route/route.go +++ b/pkg/reconciler/route/route.go @@ -369,7 +369,7 @@ func (c *Reconciler) clusterLocalDomainTLS(ctx context.Context, r *v1.Route, tc orphanCerts, err := c.getOrphanRouteCerts(r, usedDomains, netcfg.CertificateClusterLocalDomain) if err != nil { - return nil, nil //nolint:nilerr + return nil, nil } c.deleteOrphanedCerts(ctx, orphanCerts)