extensionSystem: Remove unncessary return statements

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96
This commit is contained in:
Jonas Dreßler 2019-09-11 14:54:13 +02:00 committed by Florian Müllner
parent 8754736fda
commit de86920e0e

View File

@ -130,14 +130,12 @@ var ExtensionManager = class {
extension.stateObj.enable(); extension.stateObj.enable();
extension.state = ExtensionState.ENABLED; extension.state = ExtensionState.ENABLED;
this.emit('extension-state-changed', extension); this.emit('extension-state-changed', extension);
return;
} catch (e) { } catch (e) {
if (extension.stylesheet) { if (extension.stylesheet) {
theme.unload_stylesheet(extension.stylesheet); theme.unload_stylesheet(extension.stylesheet);
delete extension.stylesheet; delete extension.stylesheet;
} }
this.logExtensionError(uuid, e); this.logExtensionError(uuid, e);
return;
} }
} }