cleanup: Don't linebreak before closing parentheses
Otherwise recent versions of eslint want "dangling" commas, which is at least ugly considering that most functions don't allow adding arguments at leasure. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1177
This commit is contained in:
@ -13,17 +13,13 @@ var ComponentManager = class {
|
||||
_sessionUpdated() {
|
||||
let newEnabledComponents = Main.sessionMode.components;
|
||||
|
||||
newEnabledComponents.filter(
|
||||
name => !this._enabledComponents.includes(name)
|
||||
).forEach(name => {
|
||||
this._enableComponent(name);
|
||||
});
|
||||
newEnabledComponents
|
||||
.filter(name => !this._enabledComponents.includes(name))
|
||||
.forEach(name => this._enableComponent(name));
|
||||
|
||||
this._enabledComponents.filter(
|
||||
name => !newEnabledComponents.includes(name)
|
||||
).forEach(name => {
|
||||
this._disableComponent(name);
|
||||
});
|
||||
this._enabledComponents
|
||||
.filter(name => !newEnabledComponents.includes(name))
|
||||
.forEach(name => this._disableComponent(name));
|
||||
|
||||
this._enabledComponents = newEnabledComponents;
|
||||
}
|
||||
|
@ -125,8 +125,7 @@ var ContentTypeDiscoverer = class {
|
||||
_emitCallback(mount, contentTypes = []) {
|
||||
// we're not interested in win32 software content types here
|
||||
contentTypes = contentTypes.filter(
|
||||
type => type != 'x-content/win32-software'
|
||||
);
|
||||
type => type !== 'x-content/win32-software');
|
||||
|
||||
let apps = [];
|
||||
contentTypes.forEach(type => {
|
||||
|
Reference in New Issue
Block a user