mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 15:43:48 +00:00
New eslint rules auto fix (#3058)
* no-implicit-coercion and no-unneeded-ternary * End every line with a semicolon * Spacing and formatting * Enabled semi-spacing * Applies npm run lint:fix to code after master merge * Fix merge issues * Switched operator-linebreak to 'before' Co-authored-by: Joshi <simplyrender@gmail.com>
This commit is contained in:
@ -118,8 +118,9 @@ define(
|
||||
|
||||
DomainObjectImpl.prototype.getCapability = function (name) {
|
||||
var capability = this.capabilities[name];
|
||||
return typeof capability === 'function' ?
|
||||
capability(this) : capability;
|
||||
|
||||
return typeof capability === 'function'
|
||||
? capability(this) : capability;
|
||||
};
|
||||
|
||||
DomainObjectImpl.prototype.hasCapability = function (name) {
|
||||
@ -131,9 +132,9 @@ define(
|
||||
var args = Array.prototype.slice.apply(arguments, [1]),
|
||||
capability = this.getCapability(name);
|
||||
|
||||
return (capability && capability.invoke) ?
|
||||
capability.invoke.apply(capability, args) :
|
||||
capability;
|
||||
return (capability && capability.invoke)
|
||||
? capability.invoke.apply(capability, args)
|
||||
: capability;
|
||||
};
|
||||
|
||||
return DomainObjectImpl;
|
||||
|
@ -81,6 +81,7 @@ define(
|
||||
result[id] = instantiate(models[id], id);
|
||||
}
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user