fix: use the constant value for 'blue'
All checks were successful
/ test (pull_request) Successful in 27s

This commit is contained in:
Dan Anglin 2023-12-03 01:31:50 +00:00
parent ffe594cb54
commit 064b0a5abe
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -80,7 +80,7 @@ func parseSets(str string) ([]Set, error) {
return nil, fmt.Errorf("unable to run strconv.Atoi() on %s; %w", i, err)
}
set.Green = value
case strings.HasSuffix(i, "blue"):
case strings.HasSuffix(i, blue):
value, err := strconv.Atoi(strings.TrimSuffix(i, blue))
if err != nil {
return nil, fmt.Errorf("unable to run strconv.Atoi() on %s; %w", i, err)