refactor: corrected variable names and logs inside HookRunner.WaitForCompletion
This commit is contained in:
parent
394b2c7149
commit
ad6a34abb5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue