Skip to content

Commit 5462109

Browse files
committed
Appease eslint
1 parent 7a6df2e commit 5462109

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/ACL.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,13 @@ export default class ACL {
234234
* @param {string|string[]} terms
235235
*
236236
* @returns {ACL}
237-
* TODO: Get the 'set' string to properly typehint as a method name eg: <M>
238237
*/
239238
private set(set: 'roles' | 'permissions', terms: string | string[]): void {
240-
this[set] = new Set(terms);
239+
if (set === 'roles') {
240+
this.roles = new Set(terms);
241+
} else {
242+
this.permissions = new Set(terms);
243+
}
241244
}
242245

243246
/**

0 commit comments

Comments
 (0)