aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2015-04-29 13:15:22 +0900
committerMikio Hara <mikioh.mikioh@gmail.com>2015-04-29 04:40:59 +0000
commita0cff2989ae15cd2cc29bf1d956c833d1b28593c (patch)
tree4d09bc5a84b8649309537b4e3496a0618e8c991e /src
parent4b23b50fb440f8df0d5da7d8c6550f5fc3cb3529 (diff)
downloadgo-a0cff2989ae15cd2cc29bf1d956c833d1b28593c.tar.xz
net: remove dead code in Write
Also, please be informed that the Write method on both connected and unconnected-mode sockets may return a positive number of bytes written with timeout or use of closed network connection error. Change-Id: I2e2e6192e29cef4e9389eb0422c605c6d12e6a3c Reviewed-on: https://go-review.googlesource.com/9466 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/net/fd_unix.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/net/fd_unix.go b/src/net/fd_unix.go
index 4b19d9442c..4859d92c99 100644
--- a/src/net/fd_unix.go
+++ b/src/net/fd_unix.go
@@ -311,7 +311,6 @@ func (fd *netFD) Write(p []byte) (nn int, err error) {
}
}
if err != nil {
- n = 0
break
}
if n == 0 {