fix: do not output extra newlines
This commit is contained in:
1 parent
550a0bd07b
commit
33bf6f59b3
1 file changed
+4
-1
@@ -273,9 +273,12 @@ func TriggerPsCurrentScale(appName string) error {
|
||||
}
|
||||
|
||||
sort.Sort(formations)
|
||||
lines := []string{}
|
||||
for _, formation := range formations {
|
||||
fmt.Printf("%s=%d\n", formation.ProcessType, formation.Quantity)
|
||||
lines = append(lines, fmt.Sprintf("%s=%d", formation.ProcessType, formation.Quantity))
|
||||
}
|
||||
|
||||
fmt.Print(strings.Join(lines, "\n"))
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user