Skip to content

Commit 456afb0

Browse files
committed
add comment to explain why nolint was set
1 parent 9f8b1f5 commit 456afb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func UserAgentConfigOption(cliVersion string) sdkConfig.ConfigurationOption {
133133
// ConvertStringMapToInterfaceMap converts a map[string]string to a pointer to map[string]interface{}.
134134
// Returns nil if the input map is empty.
135135
//
136-
//nolint:gocritic
136+
//nolint:gocritic // Linter wants to have a non-pointer type for the map, but this would mean a nil check has to be done before every usage of this func.
137137
func ConvertStringMapToInterfaceMap(m *map[string]string) *map[string]interface{} {
138138
if m == nil || len(*m) == 0 {
139139
return nil

0 commit comments

Comments
 (0)