From f7ec49e809fda3861c6cd846a37f6f05305341cc Mon Sep 17 00:00:00 2001 From: Parth Patel Date: Fri, 8 Oct 2021 22:05:36 -0400 Subject: [PATCH] lint fix --- pkg/cmd/repo/rename/rename_test.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkg/cmd/repo/rename/rename_test.go b/pkg/cmd/repo/rename/rename_test.go index 1a35579b8..1e5637324 100644 --- a/pkg/cmd/repo/rename/rename_test.go +++ b/pkg/cmd/repo/rename/rename_test.go @@ -69,13 +69,13 @@ func TestNewCmdRename(t *testing.T) { } } -func TestRenameRun(t *testing.T) { +func TestRenameRun(t *testing.T) { testCases := []struct { - name string - opts RenameOptions + name string + opts RenameOptions httpStubs func(*httpmock.Registry) stdoutTTY bool - wantOut string + wantOut string }{ { name: "owner repo change name tty", @@ -138,7 +138,7 @@ func TestRenameRun(t *testing.T) { } tt.opts.HttpClient = func() (*http.Client, error) { return &http.Client{Transport: reg}, nil - } + } io, _, stdout, _ := iostreams.Test() tt.opts.IO = io @@ -152,5 +152,4 @@ func TestRenameRun(t *testing.T) { assert.Equal(t, tt.wantOut, stdout.String()) }) } - -} \ No newline at end of file +}