Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Array#select always returns an array. Because of that the second part of the condition would always evaluate to true. Using `any?` solves the issue. And since `any?` returns with the first match this also reduces the execution time.
- Loading branch information