Skip to content

Commit 3f71c01

Browse files
committed
Suppress magic number lint warning in logger
Added an ESLint directive to ignore the magic number warning for the percentage calculation in the workspace events limit log message.
1 parent 7c6c1aa commit 3f71c01

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

workers/limiter/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ export default class LimiterWorker extends Worker {
291291
/**
292292
* Notify that workspace is about to reach events limit
293293
*/
294+
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
294295
this.logger.info(`Workspace ${workspace._id} is about to reach events limit: ${Math.floor(usedQuota * 100)}% used`);
295296

296297
/**

0 commit comments

Comments
 (0)