1
0
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:
Félix Dorn 2022-10-01 21:47:36 +00:00 committed by GitHub
parent 5f566d35bf
commit 2ebc10641d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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