Skip to content

Commit 157bbbb

Browse files
author
Mattia Bertorello
committed
Removed the name in the return parameters
1 parent 191cfc3 commit 157bbbb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: commands/commands_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ func (grabber *stdOutRedirect) Close() {
6767

6868
// executeWithArgs executes the Cobra Command with the given arguments
6969
// and intercepts any errors (even `os.Exit()` ones), returning the exit code
70-
func executeWithArgs(t *testing.T, args ...string) (exitCode int, output []byte) {
70+
func executeWithArgs(t *testing.T, args ...string) (int, []byte) {
71+
var output []byte
72+
var exitCode int
7173
fmt.Printf("RUNNING: %s\n", args)
7274

7375
redirect := &stdOutRedirect{}

0 commit comments

Comments
 (0)