Skip to content

Commit cf6074f

Browse files
committed
Remove unused anynil.Normalize
1 parent 13beb38 commit cf6074f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

internal/anynil/anynil.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ func Is(value any) bool {
4545
}
4646
}
4747

48-
// Normalize converts typed nils (e.g. []byte(nil)) into untyped nil. Other values are returned unmodified.
49-
func Normalize(v any) any {
50-
if Is(v) {
51-
return nil
52-
}
53-
return v
54-
}
55-
5648
// NormalizeSlice converts all typed nils (e.g. []byte(nil)) in s into untyped nils. Other values are unmodified. s is
5749
// mutated in place.
5850
func NormalizeSlice(s []any) {

0 commit comments

Comments
 (0)