Skip to content
Snippets Groups Projects
Commit b946f0a3 authored by Jonathan Boulle's avatar Jonathan Boulle
Browse files

sdjournal: fix Writer call

parent e8339e7d
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ process:
return ErrExpired
default:
if c > 0 {
if err = writer.Write(msg[:c]); err != nil {
if _, err = writer.Write(msg[:c]); err != nil {
break process
}
continue process
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment