fix: use the constant value for 'blue' #2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue