fix: correct issue with assignment to nil map
This commit is contained in:
1 parent
772e4286f2
commit
3fe10efd09
1 file changed
+4
@@ -541,6 +541,10 @@ func injectDokkuScale(appName string, image string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if appJSON.Formation == nil {
|
||||||
|
appJSON.Formation = make(map[string]Formation)
|
||||||
|
}
|
||||||
|
|
||||||
for _, line := range lines {
|
for _, line := range lines {
|
||||||
if line == "" || strings.HasPrefix(line, "#") {
|
if line == "" || strings.HasPrefix(line, "#") {
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in new issue
Block a user