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:
Florian Müllner
2022-01-18 21:02:04 +01:00
committed by Marge Bot
parent 1fe79a331f
commit b54111ef88
8 changed files with 11 additions and 11 deletions

View File

@ -959,7 +959,7 @@ class Panel extends St.Widget {
if (!(indicator instanceof PanelMenu.Button))
throw new TypeError('Status indicator must be an instance of PanelMenu.Button');
position = position || 0;
position ??= 0;
let boxes = {
left: this._leftBox,
center: this._centerBox,