diff --git a/pkg/action/hooks.go b/pkg/action/hooks.go index 0e4709051..271ecd23a 100644 --- a/pkg/action/hooks.go +++ b/pkg/action/hooks.go @@ -29,6 +29,9 @@ import ( // execHook executes all of the hooks for the given hook event. func (cfg *Configuration) execHook(rl *release.Release, hook release.HookEvent, timeout time.Duration) error { shutdown, err := cfg.execHookWithDelayedShutdown(rl, hook, timeout) + if shutdown == nil { + return nil + } if err != nil { if err := shutdown(); err != nil { return err