mirror of https://github.com/mastodon/mastodon
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`.pull/20091/head
parent
0beb095a4b
commit
ca80beb653
Loading…
Reference in New Issue