Skip to content
Snippets Groups Projects
Commit a8566c98 authored by Xu Cheng's avatar Xu Cheng Committed by GitHub
Browse files

various: eliminate the usage of `any?` (#638)

`any?` is not the opposite of `empty?`. Besides the case that
`[false, nil].any?` will return false, `any?`(O(n)) has much worse
performance than `empty?`(O(1)).
parent 38209aad
No related branches found
No related tags found
No related merge requests found
Showing
with 48 additions and 43 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment