-
Notifications
You must be signed in to change notification settings - Fork 124
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 rubocop #69
Add rubocop #69
Conversation
else | ||
block.call | ||
yield |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wont this be a problem? What happens to block
here? Is yield supposed to know to call block? 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was Rubocop's doing, and tests pass?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's just confusing 😜 I think yield
doesn't care about the arity of the block so maybe just simplify this to
def save_from_errors(default = false)
yield @client
rescue # ...
# ...
end
Thank you! ❤️ a couple comments above if you wouldn't mind clarifying. |
Based off of Jekyll's Rubocop config.