Skip to content

Add example for style trailing body on method definition#9557

Merged
bbatsov merged 2 commits intorubocop:masterfrom
koic:add_example_for_style_trailing_body_on_method_definition
Mar 5, 2021
Merged

Add example for style trailing body on method definition#9557
bbatsov merged 2 commits intorubocop:masterfrom
koic:add_example_for_style_trailing_body_on_method_definition

Conversation

@koic
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants