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

Add example for style trailing body on method definition #9557

Conversation

koic
Copy link
Member

@koic koic commented Mar 5, 2021

Follow #9548 (comment).

This PR adds example for Style/TrailingBodyOnMethodDefinition cop and removes a redundant condition from the cop. I noticed the redundant condition when writing the example description.

koic added 2 commits March 5, 2021 12:52
Follow rubocop#9548 (comment).

This PR adds example for `Style/TrailingBodyOnMethodDefinition`.
Follow rubocop#9548.

I noticed redundancy when writing `Style/TrailingBodyOnMethodDefinition` cop's
example description.
@bbatsov bbatsov merged commit 538c06d into rubocop:master Mar 5, 2021
@bbatsov
Copy link
Collaborator

bbatsov commented Mar 5, 2021

Thanks!

@koic koic deleted the add_example_for_style_trailing_body_on_method_definition branch March 5, 2021 06:41
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.

None yet

2 participants