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

Reuse the lvar instead of calling File.dirname(__FILE__) again and again #1979

Merged
merged 1 commit into from
May 14, 2020

Conversation

amatsuda
Copy link
Contributor

Here's a trivial patch that replaces multiple method calls for fetching current directory to an already fetched local variable.

@koic koic merged commit 5cd60ef into faker-ruby:master May 14, 2020
@koic
Copy link
Member

koic commented May 14, 2020

Thanks!

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