systemd.go: Fix gosec issue.
See,
$ gometalinter --vendor ./...
systemd.go:49:⚠️ Errors unhandled.,LOW,HIGH (gosec)
This commit is contained in:
parent
76f8dd448b
commit
a0059f793e
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user