Skip to content

Commit

Permalink
refactor: corrected variable names and logs inside HookRunner.WaitFor…
Browse files Browse the repository at this point in the history
…Completion
  • Loading branch information
ChrisERo committed Jan 15, 2022
1 parent 394b2c7 commit ad6a34a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ func (r *HookRunner) WaitForCompletion() error {
}

// Perform wait on HookRunner
exechookChannelFinishedSuccessfully := <-r.hasCompletedOnce
if !exechookChannelFinishedSuccessfully {
return fmt.Errorf("exechook completed with error")
hookRunnerFinishedSuccessfully := <-r.hasCompletedOnce
if !hookRunnerFinishedSuccessfully {
return fmt.Errorf("hook completed with error")
}

return nil
Expand Down

0 comments on commit ad6a34a

Please sign in to comment.