Skip to content

Commit

Permalink
fix(pkg/run): Fix panic: assignment to entry in nil map
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejsika committed Mar 30, 2023
1 parent 6e451fd commit 3dc5453
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ func Run(
}

func mergeMaps(m1, m2 map[string]interface{}) map[string]interface{} {
if m1 == nil {
m1 = make(map[string]interface{})
}
deepCopyM1 := deepcopy.Copy(m1).(map[string]interface{})
for k, v := range m2 {
deepCopyM1[k] = v
Expand Down

0 comments on commit 3dc5453

Please # to comment.