New ๐ŸŒŠ wave for @helm

Commit 4f8ac9a4

4f8ac9a4c170Merged

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

Description

linters: errcheck

Details

Commit
4f8ac9a4c170
Parent
ce397fbae808

pkg/plan/apply.gomodifiedView file

@@ -57,7 +57,12 @@
5757
5858 locked, err := fileLock.TryLockContext(lockCtx, time.Second)
5959 if err == nil && locked {
60- defer fileLock.Unlock()
60+ defer func() {
61+ err := fileLock.Unlock()
62+ if err != nil {
63+ log.Error(err)
64+ }
65+ }()
6166 } else if err != nil {
6267 return err
6368 }