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

Style: Remove explicit returns from the codebase #12637

Merged

Conversation

caspiano
Copy link
Contributor

@caspiano caspiano commented Oct 20, 2022

Removes explicit returns from the codebase.

One small step towards making the codebase linter friendly.
Also harmless to keep them in.


This is part of a handful of small PRs, each focussing on a single style issue that is unlikely to be found in other Crystal projects as they are picked up by the widely used ameba linter

Copy link
Member

@beta-ziliani beta-ziliani left a comment

Choose a reason for hiding this comment

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

One really minor concern

Comment on lines 212 to +213
global = ensure_class_var_in_this_module(global, class_var)
return global
global
Copy link
Member

Choose a reason for hiding this comment

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

The global assignment and return is unnecessary

@beta-ziliani beta-ziliani added this to the 1.7.0 milestone Nov 10, 2022
@straight-shoota straight-shoota merged commit 18fd4c3 into crystal-lang:master Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants