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

refactor length == 0 to use empty? method #2282

Merged
merged 1 commit into from
Nov 30, 2017

Conversation

brchristian
Copy link
Contributor

This PR refactors two lines in the frontend views that were using .length == 0. I think that .empty? (or .blank?, or alternately reversing the conditional branches and using .present?) is significantly cleaner!

Copy link
Member

@gmacdougall gmacdougall left a comment

Choose a reason for hiding this comment

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

👍

Thanks for the improvement.

@tvdeyen
Copy link
Member

tvdeyen commented Nov 29, 2017

@brchristian would you mind to rebase this branch and resolve the conflicts?

@brchristian
Copy link
Contributor Author

@tvdeyen Rebased! 👍

@tvdeyen tvdeyen merged commit 51a3ea1 into solidusio:master Nov 30, 2017
@tvdeyen
Copy link
Member

tvdeyen commented Nov 30, 2017

Thank you

@brchristian brchristian deleted the refactor_length_zero branch November 30, 2017 18:49
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.

4 participants