Commit 90cb7766 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Remove superfluous nil check.

parent e9fdcab9
...@@ -20,7 +20,7 @@ func Writev(fd int, packet [][]byte) (n int, err error) { ...@@ -20,7 +20,7 @@ func Writev(fd int, packet [][]byte) (n int, err error) {
iovecs := make([]syscall.Iovec, 0, len(packet)) iovecs := make([]syscall.Iovec, 0, len(packet))
for _, v := range packet { for _, v := range packet {
if v == nil || len(v) == 0 { if len(v) == 0 {
continue continue
} }
vec := syscall.Iovec{ vec := syscall.Iovec{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment