New ๐ŸŒŠ wave for @helm

Commit 63d88ca3

63d88ca3bdadMerged

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

Description

fix error type assertion

Details

Commit
63d88ca3bdad
Parent
a327c370a787

pkg/release/install.gomodifiedView file

@@ -1,6 +1,7 @@
11 package release
22
33 import (
4+ "errors"
45 "os"
56 "path/filepath"
67
@@ -68,7 +69,7 @@
6869 histClient := action.NewHistory(cfg)
6970 histClient.Max = 1
7071 _, err := histClient.Run(rel.Name)
71- if err == driver.ErrReleaseNotFound {
72+ if errors.Is(err, driver.ErrReleaseNotFound) {
7273 log.Debugf("๐Ÿง Release %q in %q does not exist. Installing it now.", rel.Name, rel.Options.Namespace)
7374
7475 instClient := action.NewInstall(cfg)