hugo/common/collections
Bjørn Erik Pedersen 2159d77f36
common/collections: Fix type checking in Append
The fix introduced in Hugo `0.49.1` had an unintended side-effect in the `Append` func used in both `append` and `.Scratch.Add`.

This commit fixes that by loosen/fixing the type checking so concrete types can be appended to interface slices.

Fixes #5303
2018-10-11 11:30:17 +02:00
..
append.go common/collections: Fix type checking in Append 2018-10-11 11:30:17 +02:00
append_test.go common/collections: Fix type checking in Append 2018-10-11 11:30:17 +02:00
collections.go common/maps: Improve append in Scratch 2018-10-10 12:21:51 +02:00
slice.go common/maps: Improve append in Scratch 2018-10-10 12:21:51 +02:00
slice_test.go common/maps: Improve append in Scratch 2018-10-10 12:21:51 +02:00