mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
1fe79a331f
commit
b54111ef88
8 changed files with 11 additions and 11 deletions
|
|
@ -119,7 +119,7 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
|
|||
let valid = true;
|
||||
for (let i = 0; i < this._content.secrets.length; i++) {
|
||||
let secret = this._content.secrets[i];
|
||||
valid = valid && secret.valid;
|
||||
valid &&= secret.valid;
|
||||
}
|
||||
|
||||
this._okButton.button.reactive = valid;
|
||||
|
|
@ -130,7 +130,7 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
|
|||
let valid = true;
|
||||
for (let i = 0; i < this._content.secrets.length; i++) {
|
||||
let secret = this._content.secrets[i];
|
||||
valid = valid && secret.valid;
|
||||
valid &&= secret.valid;
|
||||
if (secret.key !== null) {
|
||||
if (this._settingName === 'vpn')
|
||||
this._agent.add_vpn_secret(this._requestId, secret.key, secret.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue