mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
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 <pholzing@redhat.com>
This commit is contained in:
@ -292,11 +292,12 @@ func formatterPrefix(entry *sdjournal.JournalEntry) (string, error) {
|
||||
if !ok {
|
||||
return "", errors.Errorf("no PRIORITY field present in journal entry")
|
||||
}
|
||||
if priority == journaldLogOut {
|
||||
switch priority {
|
||||
case journaldLogOut:
|
||||
output += "stdout "
|
||||
} else if priority == journaldLogErr {
|
||||
case journaldLogErr:
|
||||
output += "stderr "
|
||||
} else {
|
||||
default:
|
||||
return "", errors.Errorf("unexpected PRIORITY field in journal entry")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user