fix: use the constant value for 'blue' #2

Manually merged
dananglin merged 1 commit from fix-use-const-val into main 2023-12-03 01:36:48 +00:00
Showing only changes of commit 064b0a5abe - Show all commits

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)