systemd.go: Fix gosec issue.

See,
$ gometalinter --vendor ./...
systemd.go:49:⚠️ Errors unhandled.,LOW,HIGH (gosec)
This commit is contained in:
Mario Trangoni 2018-12-04 17:13:17 +01:00
parent 76f8dd448b
commit a0059f793e

View File

@ -46,8 +46,10 @@ func NewJournal(unit, slice, path string) (j *Journal, err error) {
}
// Start at end of journal
j.SeekRealtimeUsec(uint64(time.Now().UnixNano() / 1000))
err = j.SeekRealtimeUsec(uint64(time.Now().UnixNano() / 1000))
if err != nil {
log.Printf("%v", err)
}
return
}