Skip to content

Commit

Permalink
chore: fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanPazRibeiro committed May 2, 2022
1 parent cad3c5b commit 8de0b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/app/models/client/models/Roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Roles = Object.assign(new Mongo.Collection(null), {
* @param {IRole['_id'][]} roles the list of role ids
* @param {IRoom['_id']} scope the value for the role scope (room id)
* @param {boolean} ignoreSubscriptions ignore the subscription role scope
*/
*/
isUserInRoles(userId, roles, scope, ignoreSubscriptions = false) {
roles = [].concat(roles);
return roles.some((roleId) => {
Expand Down
5 changes: 2 additions & 3 deletions apps/meteor/app/ui-utils/client/lib/AccountBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ export class AccountBox {
return AccountBox.items.get().filter((item: IAccountBoxItem) => applyDropdownActionButtonFilters(item));
}


public static addRoute(newRoute: any, router: any, wait = async () => null): Router {
public static addRoute(newRoute: any, router: any, wait = async (): Promise<null> => null): Router {
if (router == null) {
router = FlowRouter;
}
Expand Down Expand Up @@ -127,7 +126,7 @@ export class AccountBox {
appLayout.renderMainLayout(routeConfig);
},
triggersEnter: [
function () {
function (): void {
if (newRoute.sideNav != null) {
SideNav.setFlex(newRoute.sideNav);
SideNav.openFlex();
Expand Down

0 comments on commit 8de0b9d

Please sign in to comment.