Remove unused code

This commit is contained in:
Deluan 2024-05-09 07:47:32 -04:00
parent 885cd345ab
commit 747069b229

View file

@ -2,7 +2,6 @@ package cmd
import ( import (
"context" "context"
"errors"
"fmt" "fmt"
"os" "os"
"os/signal" "os/signal"
@ -25,8 +24,6 @@ import (
"golang.org/x/sync/errgroup" "golang.org/x/sync/errgroup"
) )
var interrupted = errors.New("service was interrupted")
var ( var (
cfgFile string cfgFile string
noBanner bool noBanner bool
@ -85,7 +82,7 @@ func runNavidrome() {
g.Go(startPlaybackServer(ctx)) g.Go(startPlaybackServer(ctx))
g.Go(schedulePeriodicScan(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) log.Error("Fatal error in Navidrome. Aborting", err)
} }
} }