Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some code cleanup #21

Merged
merged 2 commits into from
Aug 27, 2023
Merged

Some code cleanup #21

merged 2 commits into from
Aug 27, 2023

Conversation

jwoertink
Copy link
Member

Mainly just adding types around the code. Only big change here is a new Runner.register_task method instead of using the << operator. Functionally, it should be the same

# name "app.send_daily_notifications"
# task_name "app.send_daily_notifications"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was leftover from #19

@@ -279,5 +279,5 @@ abstract class LuckyTask::Task
end

abstract def call
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't add a return type to this method since it can return anything you want. The specs currently rely on the return value of this to help test.

@jwoertink jwoertink merged commit 0b8b33d into main Aug 27, 2023
4 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.

None yet

1 participant