We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 847d1d7 commit 21f132bCopy full SHA for 21f132b
internal/types/map.go
@@ -61,7 +61,10 @@ func ExpandMapStringString(data any) map[string]string {
61
62
// GetMapValue returns the value for a key from a map.
63
// returns zero value if key does not exist in map.
64
-func GetMapValue[T any](m map[string]any, key string) T { //nolint: ireturn
+func GetMapValue[T any]( //nolint:ireturn
65
+ m map[string]any,
66
+ key string,
67
+) T {
68
var val T
69
valI, exists := m[key]
70
if exists {
0 commit comments