diff options
Diffstat (limited to 'internal/color')
| -rw-r--r-- | internal/color/color.go | 3 |
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 |
