fix: do not output extra newlines
This commit is contained in:
@@ -273,9 +273,12 @@ func TriggerPsCurrentScale(appName string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sort.Sort(formations)
|
sort.Sort(formations)
|
||||||
|
lines := []string{}
|
||||||
for _, formation := range formations {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user