mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-12 11:10:35 +00:00
network: remove extra error check from Message.Encode()
Buffer write error is returned from `Encode()`.
This commit is contained in:
parent
0510d1e6c1
commit
0d2bc8f4a6
1 changed files with 0 additions and 3 deletions
|
@ -248,9 +248,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