From cf6074fe5c7c43fc5c73d56761d20f73f2bc378c Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 18 May 2024 20:37:25 -0500 Subject: [PATCH] Remove unused anynil.Normalize --- internal/anynil/anynil.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/anynil/anynil.go b/internal/anynil/anynil.go index 967dcf415..5d5065ea4 100644 --- a/internal/anynil/anynil.go +++ b/internal/anynil/anynil.go @@ -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) {