We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f30b7d6 commit 968b0abCopy full SHA for 968b0ab
1 file changed
client.go
@@ -312,11 +312,7 @@ func toAnnotationKey(origin string) string {
312
313
// AnnotationWithRelease get the annoation from release by key
314
func (c *HelmClient) AnnotationWithRelease(rel *release.Release, key string) interface{} {
315
- if v, ok := rel.Config[toAnnotationKey(key)]; !ok {
316
- return ""
317
- } else {
318
- return v.(string)
319
- }
+ return rel.Config[toAnnotationKey(key)]
320
}
321
322
// Annotation get the Annotation with the key from the release
0 commit comments