Skip to content

Commit

Permalink
remove mockable exit var as it is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrodri committed Apr 17, 2022
1 parent 136650b commit 51d627b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/validate/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ func (r *Result) prepare() error {
return nil
}

// Mockable exit function for tests.
var exit = os.Exit

// PrintWithFormat prints output to w in format, and exits if some object in output
// is not in a passing state.
func (r *Result) PrintWithFormat(format string) (failed bool, err error) {
Expand Down

0 comments on commit 51d627b

Please sign in to comment.