Skip to content

Commit

Permalink
fix: wrong param order
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Dec 21, 2022
1 parent 6a5b474 commit 1d05794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/build/gobuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ func createTemplateData() map[string]interface{} {
}

func applyTemplating(list []string, data map[string]interface{}) ([]string, error) {
result := make([]string, len(list), 0)
result := make([]string, 0, len(list))
for _, entry := range list {
tmpl, err := template.New("argsTmpl").Option("missingkey=error").Parse(entry)
if err != nil {
Expand Down

0 comments on commit 1d05794

Please sign in to comment.