Skip to content

Commit

Permalink
Remove unused anynil.Normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
jackc committed May 19, 2024
1 parent 13beb38 commit cf6074f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions internal/anynil/anynil.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ func Is(value any) bool {
}
}

// Normalize converts typed nils (e.g. []byte(nil)) into untyped nil. Other values are returned unmodified.
func Normalize(v any) any {
if Is(v) {
return nil
}
return v
}

// NormalizeSlice converts all typed nils (e.g. []byte(nil)) in s into untyped nils. Other values are unmodified. s is
// mutated in place.
func NormalizeSlice(s []any) {
Expand Down

0 comments on commit cf6074f

Please sign in to comment.