Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
chore: refactor checking error
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 committed Jul 31, 2023
1 parent 43366c7 commit 0d4a0ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ func taskCheckTransactions(ctx context.Context, logClient zLogger.GormLoggerInte
logClient.Info(ctx, "running check transaction(s) task...")

err := processTransactions(ctx, 10, opts...)
if err == nil || errors.Is(err, datastore.ErrNoResults) {
return nil
if err != nil {
return err
}
return err
return nil
}

0 comments on commit 0d4a0ea

Please sign in to comment.