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
|
// Perform wait on HookRunner
|
||||||
exechookChannelFinishedSuccessfully := <-r.hasCompletedOnce
|
hookRunnerFinishedSuccessfully := <-r.hasCompletedOnce
|
||||||
if !exechookChannelFinishedSuccessfully {
|
if !hookRunnerFinishedSuccessfully {
|
||||||
return fmt.Errorf("exechook completed with error")
|
return fmt.Errorf("hook completed with error")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue