forked from TrueCloudLab/neoneo-go
network: remove extra error check from Message.Encode()
Buffer write error is returned from `Encode()`.
This commit is contained in:
parent
63aebfeae3
commit
2dcd366ef9
1 changed files with 0 additions and 3 deletions
|
@ -196,9 +196,6 @@ func (m *Message) Bytes() ([]byte, error) {
|
|||
if err := m.Encode(w.BinWriter); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if w.Err != nil {
|
||||
return nil, w.Err
|
||||
}
|
||||
return w.Bytes(), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue