chore: return early
This commit is contained in:
1 parent
23ad4bb230
commit
82f13af166
1 file changed
+1
-1
@@ -297,12 +297,12 @@ func scaleSet(appName string, skipDeploy bool, processTuples []string) error {
|
|||||||
return fmt.Errorf("App %s contains DOKKU_SCALE file and cannot be manually scaled", appName)
|
return fmt.Errorf("App %s contains DOKKU_SCALE file and cannot be manually scaled", appName)
|
||||||
}
|
}
|
||||||
|
|
||||||
common.LogInfo1(fmt.Sprintf("Scaling %s processes: %s", appName, strings.Join(processTuples, " ")))
|
|
||||||
scale, err := parseProcessTuples(processTuples)
|
scale, err := parseProcessTuples(processTuples)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
common.LogInfo1(fmt.Sprintf("Scaling %s processes: %s", appName, strings.Join(processTuples, " ")))
|
||||||
if err := updateScalefile(appName, scale); err != nil {
|
if err := updateScalefile(appName, scale); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user