refactor: corrected variable names and logs inside HookRunner.WaitForCompletion

This commit is contained in:
ChrisERo 2022-01-15 15:23:06 -05:00
parent 394b2c7149
commit ad6a34abb5
1 changed files with 3 additions and 3 deletions

View File

@ -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