mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
cleanup: Don't shadow variables
Having variables that share the same name in overlapping scopes is confusing and error-prone, and is best avoided. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:
parent
2e4e2500dd
commit
682bd7e97c
34 changed files with 85 additions and 86 deletions
|
|
@ -984,7 +984,7 @@ var LoginDialog = GObject.registerClass({
|
|||
let hold = new Batch.Hold();
|
||||
let signalId = this._userList.connect('item-added',
|
||||
() => {
|
||||
let item = this._userList.getItemFromUserName(userName);
|
||||
item = this._userList.getItemFromUserName(userName);
|
||||
|
||||
if (item)
|
||||
hold.release();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue