fix(tui): check fmt.Sscanf return value (errcheck lint)
This commit was merged in pull request #64.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user