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

Removing meaningless begin and end #1988

Merged
merged 1 commit into from
May 18, 2020
Merged

Conversation

amatsuda
Copy link
Contributor

This begin ... end without rescue or ensure means nothing. We can just safely remove these begin and end.

It's been like this since 448cc4f removes rescue LoadError.

@koic koic merged commit fc96fb1 into faker-ruby:master May 18, 2020
@koic
Copy link
Member

koic commented May 18, 2020

Thank you!

koic added a commit to koic/rubocop that referenced this pull request Oct 5, 2020
This PR makes `Style/RedundantBegin` aware of `begin` without `rescue`
or `ensure`.

I got the inspiration below.
faker-ruby/faker#1988
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