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

Return nil from Iteration#perform #418

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Conversation

sambostock
Copy link
Contributor

perform should be treated as void, with consumers not coupling to its return value.

Explicitly returning nil ensures the return value does not change if we happen to change the implementation.

@sambostock sambostock requested a review from Mangara August 18, 2023 20:46
@sambostock sambostock force-pushed the return-nil-from-perform branch from 14c6839 to ae05f81 Compare August 18, 2023 20:50
lib/job-iteration/iteration.rb Outdated Show resolved Hide resolved
`perform` should be treated as `void`, with consumers not coupling to
its return value.

Explicitly returning `nil` ensures the return value does not change if
we happen to change the implementation.
@sambostock sambostock force-pushed the return-nil-from-perform branch from ae05f81 to 0395d2f Compare August 18, 2023 21:35
@sambostock sambostock merged commit 20ff243 into main Aug 18, 2023
@sambostock sambostock deleted the return-nil-from-perform branch August 18, 2023 22:01
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