cleanup: Avoid useless return statements
Return statements are only useful if they return a value or break the regular function flow (i.e. early returns). Remove all returns that do neither. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/731
This commit is contained in:
@ -1022,7 +1022,6 @@ var WindowManager = class {
|
||||
(proxy, error) => {
|
||||
if (error) {
|
||||
log(error.message);
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
@ -1682,7 +1681,6 @@ var WindowManager = class {
|
||||
break;
|
||||
default:
|
||||
shellwm.completed_map(actor);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1763,7 +1761,6 @@ var WindowManager = class {
|
||||
break;
|
||||
default:
|
||||
shellwm.completed_destroy(actor);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user