Skip to content

Remove unnecessary to_i calls in Record#+ for last_executed_at#3

Merged
tonytonyjan merged 1 commit into
cardinalblue:masterfrom
choznerol:refactor/remove-unnecessary-last_executed_at-to_i
Mar 12, 2026
Merged

Remove unnecessary to_i calls in Record#+ for last_executed_at#3
tonytonyjan merged 1 commit into
cardinalblue:masterfrom
choznerol:refactor/remove-unnecessary-last_executed_at-to_i

Conversation

@choznerol
Copy link
Copy Markdown
Contributor

Description

I reviewed d7e911d and noticed this potentially unnecessary to_i.

Unless I'm missing something, the last_executed_at values are already integers because of Time.now.to_i.

Test Plan

test_sum already covers this.

The last_executed_at values are already integers (from Time.now.to_i in
the recorder and JSON-parsed integers from the store), so the to_i
conversion is redundant.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tonytonyjan tonytonyjan merged commit 3c87bb3 into cardinalblue:master Mar 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants