use lower return

This commit is contained in:
Bruno Windels 2021-05-31 14:08:45 +02:00
parent 492a8fe359
commit d68d14358f

View file

@ -41,8 +41,6 @@ export class PowerLevels {
} }
if (typeof userLevel === "number") { if (typeof userLevel === "number") {
return userLevel; return userLevel;
} else {
return 0;
} }
} else if (this._createEvent) { } else if (this._createEvent) {
if (userId === this._createEvent.content?.creator) { if (userId === this._createEvent.content?.creator) {