diff options
author | Postmodern <postmodern.mod3@gmail.com> | 2022-11-07 18:50:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 03:50:47 +0100 |
commit | ca80beb6530b3bbeff795c4832e2b4ab7bc8f672 (patch) | |
tree | 80317605799a94ca1e4ac8babbd617333c2b4659 /public/emoji/1f470-200d-2642-fe0f.svg | |
parent | 0beb095a4bfbcce55acb016eaaa54b5e93a56023 (diff) |
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`.
Diffstat (limited to 'public/emoji/1f470-200d-2642-fe0f.svg')
0 files changed, 0 insertions, 0 deletions