Skip to content

Commit 33b7d3d

Browse files
committed
Fix linter errors
1 parent ca765f6 commit 33b7d3d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/util/logger/Loggable.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/naming-convention */
12
/* eslint-disable @typescript-eslint/no-extraneous-class */
23
/* eslint-disable max-classes-per-file */
34
import { Logger } from './Logger';

src/util/logger/Logger.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class Logger
2626
* in a shard process
2727
* @internal
2828
*/
29-
public static _shard: string;
29+
public static shard: string;
3030

3131
private constructor()
3232
{
@@ -72,8 +72,8 @@ export class Logger
7272
const zeroPad: (n: number | string) => string = n => `0${n}`.slice(-2);
7373
const shard: () => string = () =>
7474
{
75-
const isSharded: boolean = typeof Logger._shard !== 'undefined';
76-
const shardNum: string = (Logger._shard || 0) < 10 ? zeroPad(Logger._shard || 0) : Logger._shard.toString();
75+
const isSharded: boolean = typeof Logger.shard !== 'undefined';
76+
const shardNum: string = (Logger.shard || 0) < 10 ? zeroPad(Logger.shard || 0) : Logger.shard.toString();
7777
const shardTag: string = `[${wrapColor(colors.cyan, `SHARD_${shardNum}`)}]`;
7878
return isSharded ? shardTag : '';
7979
};

0 commit comments

Comments
 (0)