cleanup: Use logical assignments
gjs updated mozjs to a version that support assignment operators for logical operators, so use those where appropriate. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2115>
This commit is contained in:

committed by
Marge Bot

parent
1fe79a331f
commit
b54111ef88
@ -329,7 +329,7 @@ function createTimeLabel(date, params) {
|
||||
|
||||
function lowerBound(array, val, cmp) {
|
||||
let min, max, mid, v;
|
||||
cmp = cmp || ((a, b) => a - b);
|
||||
cmp ||= (a, b) => a - b;
|
||||
|
||||
if (array.length == 0)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user