From 1b62e4543845907ffba61086a79883751abca819 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 13 Jun 2022 13:36:20 +0200 Subject: golangci-lint: add systemd build tag Lint the systemd code and fix the reported problems. The remoteclient tag is no longer used so I just removed it. [NO NEW TESTS NEEDED] Signed-off-by: Paul Holzinger --- libpod/events/journal_linux.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libpod/events') diff --git a/libpod/events/journal_linux.go b/libpod/events/journal_linux.go index 866042a4c..4db87c14d 100644 --- a/libpod/events/journal_linux.go +++ b/libpod/events/journal_linux.go @@ -64,7 +64,7 @@ func (e EventJournalD) Write(ee Event) error { case Volume: m["PODMAN_NAME"] = ee.Name } - return journal.Send(string(ee.ToHumanReadable(false)), journal.PriInfo, m) + return journal.Send(ee.ToHumanReadable(false), journal.PriInfo, m) } // Read reads events from the journal and sends qualified events to the event channel @@ -167,7 +167,6 @@ func (e EventJournalD) Read(ctx context.Context, options ReadOptions) error { } } return nil - } func newEventFromJournalEntry(entry *sdjournal.JournalEntry) (*Event, error) { //nolint -- cgit v1.2.3-54-g00ecf