mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 00:23:01 +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:
@ -40,6 +40,7 @@ define(
|
||||
this.getPolicyService = function () {
|
||||
return $injector.get('policyService');
|
||||
};
|
||||
|
||||
this.openmct = openmct;
|
||||
}
|
||||
|
||||
@ -49,8 +50,8 @@ define(
|
||||
this.policyService = this.policyService || this.getPolicyService();
|
||||
|
||||
// ...and delegate to the composition policy
|
||||
return containerObject.getId() !== selectedObject.getId() &&
|
||||
this.openmct.composition.checkPolicy(containerObject.useCapability('adapter'),
|
||||
return containerObject.getId() !== selectedObject.getId()
|
||||
&& this.openmct.composition.checkPolicy(containerObject.useCapability('adapter'),
|
||||
selectedObject.useCapability('adapter'));
|
||||
};
|
||||
|
||||
@ -67,6 +68,7 @@ define(
|
||||
(context || {}).selectedObject
|
||||
);
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user