mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-04 19:19:44 +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 {
|
if err := m.Encode(w.BinWriter); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if w.Err != nil {
|
|
||||||
return nil, w.Err
|
|
||||||
}
|
|
||||||
return w.Bytes(), nil
|
return w.Bytes(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue