mirror of
https://github.com/golang/go
synced 2024-11-12 01:50:22 -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:
parent
4a5b99c3a8
commit
883e08a396
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user