New ๐ŸŒŠ wave for @helm

Commit 87505640

875056406b2aMerged

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

Description

simplify switch type

Details

Commit
875056406b2a
Parent
1e3a3a8b244e

pkg/template/extra.gomodifiedView file

@@ -40,9 +40,9 @@
4040
4141 strArgs := make([]string, len(args))
4242 for i, a := range args {
43- switch a.(type) {
43+ switch a := a.(type) {
4444 case string:
45- strArgs[i] = a.(string)
45+ strArgs[i] = a
4646 default:
4747 return "", fmt.Errorf("unexpected type of arg \"%s\" in args %v at index %d", reflect.TypeOf(a), args, i)
4848 }