fa72affe21
1. Use "in-place" variables for if statements to limit their scope to the respectful `if` block. 2. Report the error returned from sd_journal_* by using CErr(). 3. Use errors.New() instead of fmt.Errorf(). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> (cherry picked from commit 20a0e58a794cfb9b1a1f757d222248e22555f7f0) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> Upstream-commit: b32bc11a00a82584138ae78e083930918dcb0b36 Component: engine