authPrompt: Trivial style cleanup

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
This commit is contained in:
Georges Basile Stavracas Neto 2020-02-06 17:20:48 -03:00 committed by Florian Müllner
parent 0b150a17c5
commit db4dfd8fa5

View File

@ -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;
}