From c5a66e9181f9b7a358ddd3048ee024384a714bb3 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Thu, 28 Jan 2021 10:17:34 +0100 Subject: [PATCH] ui: Simlify channel receive --- internal/ui/backup.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/ui/backup.go b/internal/ui/backup.go index a64f9bd89..313eebf7b 100644 --- a/internal/ui/backup.go +++ b/internal/ui/backup.go @@ -378,9 +378,7 @@ func (b *Backup) ReportTotal(item string, s archiver.ScanStats) { // Finish prints the finishing messages. func (b *Backup) Finish(snapshotID restic.ID) { // wait for the status update goroutine to shut down - select { - case <-b.closed: - } + <-b.closed b.P("\n") b.P("Files: %5d new, %5d changed, %5d unmodified\n", b.summary.Files.New, b.summary.Files.Changed, b.summary.Files.Unchanged)