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 operator precedence bug #12

Merged
merged 1 commit into from
Aug 25, 2014

Conversation

marcboquet
Copy link
Contributor

Would fail with "undefined method empty?' for nil:NilClass" if @build_settingswasnil`.

I prefer explicit "old school" operators in this case, but it could also work reversing it: ... unless @build_settings.empty? if @build_settings

krzysztofzablocki pushed a commit that referenced this pull request Aug 25, 2014
Fix operator precedence bug
@krzysztofzablocki krzysztofzablocki merged commit c29b6ce into krzysztofzablocki:master Aug 25, 2014
@krzysztofzablocki
Copy link
Owner

Hehe I looked at it yesterday and was thinking 'was I drunk when I wrote this lines?' thanks 👍

@marcboquet
Copy link
Contributor Author

🍷 👍

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