fix(tui): check fmt.Sscanf return value (errcheck lint)
CI / test (pull_request) Successful in 2m37s
CI / lint (pull_request) Successful in 57s
CI / vulncheck (pull_request) Successful in 51s

This commit was merged in pull request #64.
This commit is contained in:
2026-06-04 19:56:05 -04:00
parent 986681ef8a
commit 7bff79b09c
+1 -1
View File
@@ -12,7 +12,7 @@ var sparkChars = []rune{'▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'}
func parseHex(hex string) (r, g, b uint8) {
if len(hex) == 7 && hex[0] == '#' {
fmt.Sscanf(hex[1:], "%02x%02x%02x", &r, &g, &b)
_, _ = fmt.Sscanf(hex[1:], "%02x%02x%02x", &r, &g, &b)
}
return
}