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

import only required function #5968

Merged

Conversation

yakov-cl
Copy link
Contributor

@yakov-cl yakov-cl commented Nov 6, 2024

Based on hexdocs: https://hexdocs.pm/elixir/alias-require-and-import.html\#import it is recommended to only import the function you are using. This change proposes to just import render_to_string in the error_html_test.exs file

@yakov-cl yakov-cl force-pushed the import-only-required-function branch from 2a7d13e to 9cf7a57 Compare November 11, 2024 15:13
Based on hexdocs: https://hexdocs.pm/elixir/alias-require-and-import.html\#import it is recommended to only import the function you are using. This change proposes to just import `render_to_string` in the `error_html_test.exs` file
@yakov-cl yakov-cl force-pushed the import-only-required-function branch from 9cf7a57 to b2d5e18 Compare November 11, 2024 15:13
@yakov-cl yakov-cl requested a review from Gazler November 11, 2024 18:35
@SteffenDE SteffenDE merged commit 38be716 into phoenixframework:main Nov 26, 2024
5 of 7 checks passed
@SteffenDE
Copy link
Contributor

Thank you! 🙌

@yakov-cl yakov-cl deleted the import-only-required-function branch November 26, 2024 14:24
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.

4 participants