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

Fix false positive in SpaceAroundKeyword for rescue with a parentheses #2861

Merged
merged 1 commit into from
Feb 18, 2016

Conversation

rrosenblum
Copy link
Contributor

No description provided.

@@ -133,6 +133,7 @@ def check(node, locations, begin_keyword = DO)
range = node.loc.public_send(loc)
next unless range

# node.children[0].source
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is probably accidental?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is. It was a note to myself about a possible solution. Thanks for catching this.

bbatsov added a commit that referenced this pull request Feb 18, 2016
Fix false positive in SpaceAroundKeyword for rescue with a parentheses
@bbatsov bbatsov merged commit 0564394 into rubocop:master Feb 18, 2016
@rrosenblum rrosenblum deleted the space_around_keyword branch February 18, 2016 14:19
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.

3 participants