Dont use pointer for multiply prefs (avoid nil)

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 0484d0232b
commit 2c7db0071a
3 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ func collect(d *dataTreeNavigator, aggregate *list.List, remainingMatches *list.
newCandidate.Path = nil
newCandidate, err = multiply(&multiplyPreferences{AppendArrays: false})(d, newCandidate, splatCandidate)
newCandidate, err = multiply(multiplyPreferences{AppendArrays: false})(d, newCandidate, splatCandidate)
if err != nil {
return nil, err
}