fix: ensure each entry in a process type has whitespace removed

This commit is contained in:
Jose Diaz-Gonzalez
2024-02-11 21:06:28 -05:00
parent ab1f8bfd30
commit 66f46de2fd

View File

@@ -130,8 +130,8 @@ func parseProcessTuples(processTuples []string) (FormationSlice, error) {
return formations, fmt.Errorf("Missing count for process type %s", processTuple)
}
processType := s[0]
quantity, err := strconv.Atoi(s[1])
processType := strings.TrimSpace(s[0])
quantity, err := strconv.Atoi(strings.TrimSpace(s[1]))
if err != nil {
return formations, fmt.Errorf("Invalid count for process type %s", s[0])
}