Skip to content

Commit

Permalink
Pipeline: change signature of 'mergeFiles' template function
Browse files Browse the repository at this point in the history
This is to address error: wrong type for value; expected string; got []string

Signed-off-by: Richard Kosegi <richard.kosegi@gmail.com>
  • Loading branch information
rkosegi committed Aug 16, 2024
1 parent 9f72fdb commit 67e7b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/template_engine_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func globFunc(pattern string) ([]string, error) {
}

// mergeFilesFunc merges 0 or more files into single map[string]interface{}
func mergeFilesFunc(files ...string) (map[string]interface{}, error) {
func mergeFilesFunc(files []string) (map[string]interface{}, error) {
ds := analytics.NewDocumentSet()
result := make(map[string]interface{})
for _, f := range files {
Expand Down

0 comments on commit 67e7b43

Please sign in to comment.