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

Refactor CrystalPath#find_in_path_relative_to_dir for readability #10876

Merged

Conversation

straight-shoota
Copy link
Member

This is a pure refactoring for readability, easier testing and some small performance improvements. It should not introduce any change in behaviour.

The main benefit is that it shows clearly, what paths each require filename expands to (cf #10820 (comment)).
Some of them look very questionable and should be subject to discussion in a subsequent issue (cf #10820 (comment)).

@straight-shoota straight-shoota changed the title Refactor CrystalPath#find_in_path_relative_to_dir for readability Refactor CrystalPath#find_in_path_relative_to_dir for readability Jul 2, 2021
Copy link
Member

@asterite asterite left a comment

Choose a reason for hiding this comment

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

Nice! Really useful

@straight-shoota straight-shoota added this to the 1.2.0 milestone Jul 2, 2021
@straight-shoota straight-shoota mentioned this pull request Jul 2, 2021
@straight-shoota straight-shoota merged commit 3b6d6bb into crystal-lang:master Jul 23, 2021
@straight-shoota straight-shoota deleted the refactor/crystal_path-find branch July 23, 2021 12:06
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.

None yet

2 participants