forked from berserker/microblog
Micro-optimization: use `if`/`else` instead of `Array#compact` and `Array#min` (#19906)
* Technically `if`/`else` is faster than using `[value1, value2].compact.min` to find the lesser of two values, one of which may be `nil`.main^2
parent
0beb095a4b
commit
ca80beb653
1 changed files with 6 additions and 1 deletions
Loading…
Reference in new issue