mirror of
https://github.com/golang/go
synced 2024-11-27 02:11:17 -07:00
log/syslog: return nil directly
This commit is contained in:
parent
5f566d35bf
commit
2ebc10641d
@ -255,7 +255,7 @@ func (w *Writer) writeAndRetry(p Priority, s string) (int, error) {
|
||||
|
||||
if w.conn != nil {
|
||||
if n, err := w.write(pr, s); err == nil {
|
||||
return n, err
|
||||
return n, nil
|
||||
}
|
||||
}
|
||||
if err := w.connect(); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user