From 83f8f5447ec3baf85314ce7343f0e339d28bcc15 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 27 Jun 2026 17:26:23 -0400 Subject: refactor: removed some redundant new map code --- internal/color/color.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'internal/color') diff --git a/internal/color/color.go b/internal/color/color.go index 13fca69..e971382 100644 --- a/internal/color/color.go +++ b/internal/color/color.go @@ -298,9 +298,6 @@ func Parse(input string) ColorSpec { // parseColorIndex parses a 1-2 digit hexadecimal color index (00-FF, case // insensitive) into its 0-255 value. Out-of-range or non-hex input fails. func parseColorIndex(s string) (int, bool) { - if s == "" { - return 0, false - } n, err := strconv.ParseUint(s, 16, 0) if err != nil || n > 255 { return 0, false -- cgit v1.2.3