From 747069b229afee4eab34441468e08411efafa09a Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 9 May 2024 07:47:32 -0400 Subject: [PATCH] Remove unused code --- cmd/root.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index f5e20ab94..f411797fb 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -2,7 +2,6 @@ package cmd import ( "context" - "errors" "fmt" "os" "os/signal" @@ -25,8 +24,6 @@ import ( "golang.org/x/sync/errgroup" ) -var interrupted = errors.New("service was interrupted") - var ( cfgFile string noBanner bool @@ -85,7 +82,7 @@ func runNavidrome() { g.Go(startPlaybackServer(ctx)) g.Go(schedulePeriodicScan(ctx)) - if err := g.Wait(); err != nil && !errors.Is(err, interrupted) { + if err := g.Wait(); err != nil { log.Error("Fatal error in Navidrome. Aborting", err) } }