From 435067442a44c76996a54fe904fbd322e5347ec5 Mon Sep 17 00:00:00 2001 From: Dark Dragon Date: Wed, 5 Feb 2025 22:54:25 +0100 Subject: [PATCH] prune: Remove standard output when using --json --- cmd/restic/cmd_prune.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index e5a291b28..88ffdf18a 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -262,8 +262,8 @@ func printPruneStats(printer progress.Printer, stats repository.PruneStats) erro printer.P("this removes: %10d blobs / %s", stats.Blobs.Repackrm, ui.FormatBytes(stats.Size.Repackrm)) printer.P("to delete: %10d blobs / %s", stats.Blobs.Remove, ui.FormatBytes(stats.Size.Remove+stats.Size.Unref)) printer.P("total prune: %10d blobs / %s", stats.Blobs.RemoveTotal, ui.FormatBytes(stats.Size.RemoveTotal)) - if stats.Size.Uncompressed > 0 { - printer.P("not yet compressed: %s", ui.FormatBytes(stats.Size.Uncompressed)) + if stats.Size.Uncompressed > 0 { + printer.P("not yet compressed: %s", ui.FormatBytes(stats.Size.Uncompressed)) } printer.P("remaining: %10d blobs / %s", stats.Blobs.Remain, ui.FormatBytes(stats.Size.Remain)) printer.P("unused size after prune: %s (%s of remaining size)",