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

use any? instead of !empty? #3628

Merged
merged 1 commit into from
Nov 14, 2011
Merged

use any? instead of !empty? #3628

merged 1 commit into from
Nov 14, 2011

Conversation

oscardelben
Copy link
Contributor

I'd like to do some light refactoring on the Rails source code to improve readability. This is the first one to see if the core team is interested at all.

@wycats
Copy link
Member

wycats commented Nov 14, 2011

Looks good to me. Are there any caveats to using any? here?

@oscardelben
Copy link
Contributor Author

Not that I know of. Any? without a block is just testing if there's any element in the array.

wycats added a commit that referenced this pull request Nov 14, 2011
@wycats wycats merged commit 1df22bb into rails:master Nov 14, 2011
@wycats
Copy link
Member

wycats commented Nov 14, 2011

I accepted the pull request, but I assume you checked that all tests pass?

@oscardelben
Copy link
Contributor Author

I did, thanks.

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