summaryrefslogtreecommitdiff
path: root/src/pkg/io/pipe.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/io/pipe.go')
-rw-r--r--src/pkg/io/pipe.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pkg/io/pipe.go b/src/pkg/io/pipe.go
index ff52988b2..743e4c468 100644
--- a/src/pkg/io/pipe.go
+++ b/src/pkg/io/pipe.go
@@ -166,9 +166,7 @@ func (r *PipeReader) CloseWithError(rerr os.Error) os.Error {
return r.p.CloseReader(rerr);
}
-func (r *PipeReader) finish() {
- r.Close();
-}
+func (r *PipeReader) finish() { r.Close() }
// Write half of pipe.
type PipeWriter struct {
@@ -206,9 +204,7 @@ func (w *PipeWriter) CloseWithError(werr os.Error) os.Error {
return w.p.CloseWriter(werr);
}
-func (w *PipeWriter) finish() {
- w.Close();
-}
+func (w *PipeWriter) finish() { w.Close() }
// Pipe creates a synchronous in-memory pipe.
// It can be used to connect code expecting an io.Reader