Skip to content

Commit

Permalink
chore: panic if no containers are detected
Browse files Browse the repository at this point in the history
  • Loading branch information
owojcikiewicz committed Nov 28, 2023
1 parent 4d11280 commit ba091bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ func main() {
c.AddFunc(os.Getenv("BACKUP_CRON"), func() {
containers, err := dockerClient.GetContainers()
if err != nil {
log.Println(err)
return
panic(err)
}

var wg sync.WaitGroup
Expand Down

0 comments on commit ba091bd

Please sign in to comment.