Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed May 9, 2024
1 parent 885cd34 commit 747069b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cmd

import (
"context"
"errors"
"fmt"
"os"
"os/signal"
Expand All @@ -25,8 +24,6 @@ import (
"golang.org/x/sync/errgroup"
)

var interrupted = errors.New("service was interrupted")

var (
cfgFile string
noBanner bool
Expand Down Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 747069b

Please sign in to comment.