From 837ae14373c0fadb2aa67842c19c0853128b7553 Mon Sep 17 00:00:00 2001 From: Samuel Stoltenberg Date: Sat, 7 Oct 2023 02:59:10 -0500 Subject: [PATCH] Fix new linting issues post-rebase --- command_test.go | 3 ++- flag_test.go | 3 ++- help_test.go | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/command_test.go b/command_test.go index d6e40c9a27..3aa2a45996 100644 --- a/command_test.go +++ b/command_test.go @@ -538,7 +538,8 @@ func TestCommand_PreservesSeparatorOnSubcommands(t *testing.T) { SliceFlagSeparator: ";", } - app.Run([]string{"app", "foo", "bar", "--my-flag", "1;2;3"}) + err := app.Run([]string{"app", "foo", "bar", "--my-flag", "1;2;3"}) + expect(t, err, nil) expect(t, values, []string{"1", "2", "3"}) } diff --git a/flag_test.go b/flag_test.go index 32259c547a..4971de624f 100644 --- a/flag_test.go +++ b/flag_test.go @@ -126,7 +126,8 @@ func TestBoolFlagCountFromContext(t *testing.T) { }, } - app.Run(bct.input) + err := app.Run(bct.input) + expect(t, err, nil) } } diff --git a/help_test.go b/help_test.go index 1188f85e2d..80b38ac1d9 100644 --- a/help_test.go +++ b/help_test.go @@ -1330,7 +1330,7 @@ func TestDefaultCompleteWithFlags(t *testing.T) { tc.a.HideHelp = true tc.a.Writer = writer os.Args = tc.argv - tc.a.Run(tc.argv) + _ = tc.a.Run(tc.argv) written := writer.String()