Skip to content

Commit

Permalink
Fix slice of values generated code
Browse files Browse the repository at this point in the history
This was not a problem in the generated code because slice of values is used only with `AnyValue` for the moment.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu committed Jan 25, 2021
1 parent 98c3781 commit d61fd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/pdatagen/internal/base_slices.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func (es ${structName}) Resize(newLen int) {
}
// Add extra empty elements to the array.
empty := otlpcommon.AnyValue{}
empty := ${originName}{}
for i := oldLen; i < newLen; i++ {
*es.orig = append(*es.orig, empty)
}
Expand Down

0 comments on commit d61fd6e

Please sign in to comment.