aboutsummaryrefslogtreecommitdiff
path: root/internal/color
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-27 17:26:23 -0400
committerhistoria <[not public]>2026-06-27 17:26:23 -0400
commit83f8f5447ec3baf85314ce7343f0e339d28bcc15 (patch)
treebf01d0da4eb7b72e0fd410a74fc0ed6d2bc42232 /internal/color
parent988b006a5bb9edb6465653566e7bdf8175347b8c (diff)
downloadthehouseoficarus-83f8f5447ec3baf85314ce7343f0e339d28bcc15.tar.gz
refactor: removed some redundant new map code
Diffstat (limited to 'internal/color')
-rw-r--r--internal/color/color.go3
1 files changed, 0 insertions, 3 deletions
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