mirror of
https://github.com/spf13/cobra
synced 2024-12-27 14:57:06 +00:00
fixing linter issues
This commit is contained in:
parent
b635726081
commit
f2b07da1e2
1 changed files with 2 additions and 2 deletions
|
@ -1412,11 +1412,11 @@ func TestUsageStringRedirected(t *testing.T) {
|
|||
cmd.Print("[stdout1]")
|
||||
cmd.PrintErr("[stderr2]")
|
||||
cmd.Print("[stdout3]")
|
||||
return nil;
|
||||
return nil
|
||||
}
|
||||
|
||||
expected := "[stdout1][stderr2][stdout3]"
|
||||
if got := c.UsageString(); got != expected {
|
||||
if got := c.UsageString(); got != expected {
|
||||
t.Errorf("Expected usage string to consider both stdout and stderr")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue