New ๐ŸŒŠ wave for @helm

Commit 50b34d07

50b34d077e59Merged

Svyatoslav Dumchenko <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified

Description

use defer

Details

Commit
50b34d077e59
Parent
61e9bbeff019

pkg/yml/sync.gomodifiedView file

@@ -73,8 +73,8 @@
7373 wg.Add(1)
7474 go func(c *Config, manifestPath string, async bool, wg *parallel.WaitGroup, cancel context.CancelFunc) {
7575 defer wg.Done()
76+ defer cancel()
7677 wg.ErrChan() <- c.SyncReleases(manifestPath, async)
77- cancel()
7878 }(c, manifestPath, async, wg, cancel)
7979
8080 return wg.Wait()