Skip to content

Commit

Permalink
Combine
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Mar 26, 2024
1 parent 318f778 commit 28784cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ func main() {
}
defer source.Close()

err = source.Run(ctx, writer)
if err != nil {
if err = source.Run(ctx, writer); err != nil {
logger.Fatal(fmt.Sprintf("Failed to run %s snapshot", cfg.Source), slog.Any("err", err))
}
}

0 comments on commit 28784cc

Please sign in to comment.