From ad6a34abb5161c47c82070bf43b388b849a3cdd9 Mon Sep 17 00:00:00 2001 From: ChrisERo Date: Sat, 15 Jan 2022 15:23:06 -0500 Subject: [PATCH] refactor: corrected variable names and logs inside HookRunner.WaitForCompletion --- pkg/hook/hook.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/hook/hook.go b/pkg/hook/hook.go index d1b89c235..13f92e3a6 100644 --- a/pkg/hook/hook.go +++ b/pkg/hook/hook.go @@ -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