Browse Source

ssh: remove unused buffer.eof return value

buffer.eof always returns nil and none of the callers check the return
value.

Change-Id: I2053cb6e48dea3a2cd371644a1a5d1a835efda10
Reviewed-on: https://go-review.googlesource.com/56831
Reviewed-by: Han-Wen Nienhuys <hanwen@google.com>
Run-TryBot: Han-Wen Nienhuys <hanwen@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Tobias Klauser 8 years ago
parent
commit
847319b7fc
1 changed files with 2 additions and 3 deletions
  1. 2 3
      ssh/buffer.go

+ 2 - 3
ssh/buffer.go

@@ -51,13 +51,12 @@ func (b *buffer) write(buf []byte) {
 }
 
 // eof closes the buffer. Reads from the buffer once all
-// the data has been consumed will receive os.EOF.
-func (b *buffer) eof() error {
+// the data has been consumed will receive io.EOF.
+func (b *buffer) eof() {
 	b.Cond.L.Lock()
 	b.closed = true
 	b.Cond.Signal()
 	b.Cond.L.Unlock()
-	return nil
 }
 
 // Read reads data from the internal buffer in buf.  Reads will block