Skip to content

Commit

Permalink
update codegen
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Jun 6, 2022
1 parent 4d4af5a commit b8e69c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func SafeParseIntSlice(in interface{}, elements int) ([]int, error) {
return nil, err
}

var result = make([]int, len(raw))
var result = make([]int, 0, len(raw))
for _, element := range raw {
result = append(result, int(element))
}
Expand Down

0 comments on commit b8e69c1

Please sign in to comment.