Skip to content

Commit 21f132b

Browse files
committed
feat(mongodb): fix lint
1 parent 847d1d7 commit 21f132b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/types/map.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ func ExpandMapStringString(data any) map[string]string {
6161

6262
// GetMapValue returns the value for a key from a map.
6363
// returns zero value if key does not exist in map.
64-
func GetMapValue[T any](m map[string]any, key string) T { //nolint: ireturn
64+
func GetMapValue[T any]( //nolint:ireturn
65+
m map[string]any,
66+
key string,
67+
) T {
6568
var val T
6669
valI, exists := m[key]
6770
if exists {

0 commit comments

Comments
 (0)