Skip to content

Commit

Permalink
Remove named return for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
acomagu committed Jun 18, 2019
1 parent 950dbc5 commit 8516283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bufpipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func New(buf []byte) (*PipeReader, *PipeWriter) {
// reading from the internal buffer, otherwise blocking until a writer arrives
// or the write end is closed. If the write end is closed with an error, that
// error is returned as err; otherwise err is io.EOF.
func (r *PipeReader) Read(data []byte) (nn int, ee error) {
func (r *PipeReader) Read(data []byte) (int, error) {
r.cond.L.Lock()
defer r.cond.L.Unlock()

Expand Down

0 comments on commit 8516283

Please sign in to comment.