mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue