mirror of
https://github.com/vsariola/sointu.git
synced 2026-03-21 06:10:10 -04:00
A somewhat gotcha: when unmarshaling into &m.d with json.Unmarshal or yaml.Unmarshal, maps were "merged" with the existing maps, which is how we ended up with send units with color parameters, among other things. This fix always unmarshals into fresh var data modelData and only then sets m.d = data if the unmarshaling was succesful.