From db4dfd8fa539a4a0c30a134030e9bcddb52bcb82 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 6 Feb 2020 17:20:48 -0300 Subject: [PATCH] authPrompt: Trivial style cleanup https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922 --- js/gdm/authPrompt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 82852207e..1a36b994e 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -181,10 +181,10 @@ var AuthPrompt = GObject.registerClass({ } _updateEntry(secret) { - if (secret && (this._entry != this._passwordEntry)) { + if (secret && this._entry !== this._passwordEntry) { this._mainBox.replace_child(this._entry, this._passwordEntry); this._entry = this._passwordEntry; - } else if (!secret && (this._entry != this._textEntry)) { + } else if (!secret && this._entry !== this._textEntry) { this._mainBox.replace_child(this._entry, this._textEntry); this._entry = this._textEntry; }