Skip to content

Commit

Permalink
FIX: reuse err instead of re-initializing
Browse files Browse the repository at this point in the history
Fixing the error pointed out by Shadab.
  • Loading branch information
imyousuf committed Dec 20, 2024
1 parent 28a0381 commit 897ba9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func SetupPruneableMessageFixture(dataAccessor DataAccessor, channel *data.Chann
if err == nil {
for index := range jobs {
errMsg = "error marking job inflight"
err := deliverJobRepo.MarkJobInflight(jobs[index])
err = deliverJobRepo.MarkJobInflight(jobs[index])
if err == nil {
errMsg = "error marking job delivered"
err = deliverJobRepo.MarkJobDelivered(jobs[index])
Expand Down

0 comments on commit 897ba9a

Please sign in to comment.