diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-12 11:26:51 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-12 13:43:27 +0200 |
commit | 306573def0e20ec16ee5c447981cc09ed8bb7ec7 (patch) | |
tree | 86c5a0bc8ab092b58d14f35d2d4fd8b5bd17c742 /resource/bundler | |
parent | 80c8f3b81a9849080e64bf877288ede28d960d3f (diff) |
Improve type support in resources.Concat
This allows the result of `.Resources.Match` and similar to be concatenated.
Fixes #4934
Diffstat (limited to 'resource/bundler')
-rw-r--r-- | resource/bundler/bundler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resource/bundler/bundler.go b/resource/bundler/bundler.go index a86b39efa..b9cd718db 100644 --- a/resource/bundler/bundler.go +++ b/resource/bundler/bundler.go @@ -62,7 +62,7 @@ func (r *multiReadSeekCloser) Close() error { } // Concat concatenates the list of Resource objects. -func (c *Client) Concat(targetPath string, resources []resource.Resource) (resource.Resource, error) { +func (c *Client) Concat(targetPath string, resources resource.Resources) (resource.Resource, error) { // The CACHE_OTHER will make sure this will be re-created and published on rebuilds. return c.rs.ResourceCache.GetOrCreate(resource.CACHE_OTHER, targetPath, func() (resource.Resource, error) { var resolvedm media.Type |