1
0
mirror of https://github.com/golang/go synced 2024-11-12 02:10:21 -07:00

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: Joe Tsai <thebrokentoaster@gmail.com>
This commit is contained in:
Sergey Semin 2017-10-23 16:49:38 +04:00 committed by Joe Tsai
parent 4a5b99c3a8
commit 883e08a396

View File

@ -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
}
}