podman events --format: fix duplicated newline

The --format changes caused a duplicated newline.
PR #15678 should have a test for this.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2022-09-12 18:02:45 +02:00
parent 2ae4ce7999
commit a63a40c3ee

View File

@ -117,7 +117,6 @@ func eventsCmd(cmd *cobra.Command, _ []string) error {
if err := rpt.Execute(event); err != nil {
return err
}
os.Stdout.WriteString("\n")
default:
fmt.Println(event.ToHumanReadable(!noTrunc))
}