Skip to content

Commit

Permalink
Fix return placement in cli_test (#12036)
Browse files Browse the repository at this point in the history
  • Loading branch information
faec authored May 3, 2019
1 parent 00ba9e2 commit 88ee8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/common/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func TestExitWithError(t *testing.T) {
RunWith(func(cmd *cobra.Command, args []string) error {
return fmt.Errorf("Something bad")
})(cmd, args)
return
}()
return
}

stderr, err := runCli("TestExitWithError")
Expand Down

0 comments on commit 88ee8fb

Please sign in to comment.