core/vm/program: remove redundant allocation in New()

This commit is contained in:
strmfos 2025-11-26 19:07:41 +01:00 committed by GitHub
parent 3bbf5f5b6a
commit 7773897371
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,9 +42,7 @@ type Program struct {
// New creates a new Program
func New() *Program {
return &Program{
code: make([]byte, 0),
}
return &Program{}
}
// add adds the op to the code.