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:

committed by
Georges Basile Stavracas Neto

parent
2e4e2500dd
commit
682bd7e97c
@ -134,10 +134,10 @@ var InhibitShortcutsDialog = GObject.registerClass({
|
||||
|
||||
this._permStore.LookupRemote(APP_PERMISSIONS_TABLE,
|
||||
APP_PERMISSIONS_ID,
|
||||
(res, error) => {
|
||||
if (error) {
|
||||
(res, err) => {
|
||||
if (err) {
|
||||
this._dialog.open();
|
||||
log(error.message);
|
||||
log(err.message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user