Skip to content

Commit

Permalink
Prefer setter method call to instance method mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
akadusei committed Dec 3, 2023
1 parent 406b83e commit 6f1e87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker/task.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ abstract class Mel::Task
return log_not_due unless force || due?

do_before_run
@attempts += 1
self.attempts += 1

spawn(name: id) do
log_running
Expand Down

0 comments on commit 6f1e87c

Please sign in to comment.