remove unnecessary plus [ci skip]

This commit is contained in:
Petabyte Storage 2017-10-24 15:14:13 -07:00 committed by Ethan Buchman
parent 5534eb4707
commit ceedd4d968
1 changed files with 5 additions and 5 deletions

View File

@ -268,11 +268,11 @@ func (p *peer) CanSend(chID byte) bool {
}
// WriteTo writes the peer's public key to w.
func (p *peer) WriteTo(w io.Writer) (n int64, err error) {
var n_ int
wire.WriteString(p.key, w, &n_, &err)
n += int64(n_)
return
func (p *peer) WriteTo(w io.Writer) (int64, error) {
var n int
var err error
wire.WriteString(p.key, w, &n, &err)
return int64(n), err
}
// String representation.