From ca1df7fb4828ea2a37c0f929614bad5e2be00524 Mon Sep 17 00:00:00 2001 From: Luke Kingland Date: Wed, 6 Mar 2024 13:57:23 +0900 Subject: [PATCH] lint errors --- cmd/client_test.go | 2 -- cmd/delete_test.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/client_test.go b/cmd/client_test.go index 3c1ae8105a..8be224f13c 100644 --- a/cmd/client_test.go +++ b/cmd/client_test.go @@ -8,8 +8,6 @@ import ( "knative.dev/func/pkg/mock" ) -const namespace = "func" - // Test_NewTestClient ensures that the convenience method for // constructing a mocked client for testing properly considers options: // options provided to the factory constructor are considered exaustive, diff --git a/cmd/delete_test.go b/cmd/delete_test.go index f836bfb681..079fddcc71 100644 --- a/cmd/delete_test.go +++ b/cmd/delete_test.go @@ -23,7 +23,7 @@ func TestDelete_Default(t *testing.T) { ) remover.RemoveFn = func(n, ns string) error { - if name != name { + if n != name { t.Fatalf("expected name '%v', got '%v'", name, n) } if ns != namespace {