Return null instead of undefined

This commit is contained in:
Michael Rogers 2023-06-21 17:47:11 -05:00
parent 295efee47a
commit 4902b31270

View File

@ -136,7 +136,7 @@ class UserAPI extends EventEmitter {
*/
canProvideStatusForRole() {
if (!this || !this.hasProvider()) {
return Promise.resolve(undefined);
return null;
}
const activeRole = this.getActiveRole();