Commit 883e08a3 authored by Sergey Semin's avatar Sergey Semin Committed by Joe Tsai

log: Remove unnecessary else

Change-Id: I868f5101dd44f427d6504a8dbb198c06107be00e
Reviewed-on: https://go-review.googlesource.com/72380
Run-TryBot: Gabriel Aszalos <gabriel.aszalos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarJoe Tsai <thebrokentoaster@gmail.com>
parent 4a5b99c3
......@@ -20,9 +20,7 @@ func unixSyslog() (conn serverConn, err error) {
for _, network := range logTypes {
for _, path := range logPaths {
conn, err := net.Dial(network, path)
if err != nil {
continue
} else {
if err == nil {
return &netConn{conn: conn, local: true}, nil
}
}
......
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