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
@ -2114,7 +2114,7 @@ class Indicator extends PanelMenu.SystemIndicator {
|
||||
// NONE is also possible, with a connection configured to force no default route
|
||||
// (but in general we should only prompt a portal if we know there is a portal)
|
||||
if (GLib.getenv('GNOME_SHELL_CONNECTIVITY_TEST') != null)
|
||||
isPortal = isPortal || this._client.connectivity < NM.ConnectivityState.FULL;
|
||||
isPortal ||= this._client.connectivity < NM.ConnectivityState.FULL;
|
||||
if (!isPortal || Main.sessionMode.isGreeter)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user