mirror of
https://github.com/nasa/openmct.git
synced 2024-12-27 00:31:06 +00:00
Return null instead of undefined
This commit is contained in:
parent
295efee47a
commit
4902b31270
@ -136,7 +136,7 @@ class UserAPI extends EventEmitter {
|
|||||||
*/
|
*/
|
||||||
canProvideStatusForRole() {
|
canProvideStatusForRole() {
|
||||||
if (!this || !this.hasProvider()) {
|
if (!this || !this.hasProvider()) {
|
||||||
return Promise.resolve(undefined);
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const activeRole = this.getActiveRole();
|
const activeRole = this.getActiveRole();
|
||||||
|
Loading…
Reference in New Issue
Block a user