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
@ -28,7 +28,7 @@ function _setButtonsForChoices(dialog, oldChoices, choices) {
|
||||
for (let idx = 0; idx < choices.length; idx++) {
|
||||
let button = idx;
|
||||
|
||||
buttonsChanged = buttonsChanged || oldChoices[idx] !== choices[idx];
|
||||
buttonsChanged ||= oldChoices[idx] !== choices[idx];
|
||||
|
||||
buttons.unshift({
|
||||
label: choices[idx],
|
||||
|
Reference in New Issue
Block a user