mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
payload: always dereference NullPayload
There is no need in extra indirection level.
This commit is contained in:
parent
9f42108ef2
commit
505029152f
1 changed files with 4 additions and 4 deletions
|
@ -12,12 +12,12 @@ type NullPayload struct {
|
|||
}
|
||||
|
||||
// NewNullPayload returns zero-sized stub payload.
|
||||
func NewNullPayload() *NullPayload {
|
||||
return &NullPayload{}
|
||||
func NewNullPayload() NullPayload {
|
||||
return NullPayload{}
|
||||
}
|
||||
|
||||
// DecodeBinary implements Serializable interface.
|
||||
func (p *NullPayload) DecodeBinary(r *io.BinReader) {}
|
||||
func (p NullPayload) DecodeBinary(r *io.BinReader) {}
|
||||
|
||||
// EncodeBinary implements Serializable interface.
|
||||
func (p *NullPayload) EncodeBinary(w *io.BinWriter) {}
|
||||
func (p NullPayload) EncodeBinary(w *io.BinWriter) {}
|
||||
|
|
Loading…
Reference in a new issue