Skip to content

Commit f7e6a31

Browse files
committed
refactor(logger): delete unnecessary var
1 parent ff81545 commit f7e6a31

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/utils/logger.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,9 @@ export class PinoLogger {
7777
}
7878

7979
let instance: PinoLogger | undefined;
80-
let initialized = false;
8180
export function makeInstance(postProcess?: PostProcess): PinoLogger {
82-
if (!initialized || !instance) {
81+
if (!instance) {
8382
instance = new PinoLogger(postProcess || noop);
84-
initialized = true;
8583
}
8684
return instance;
8785
}

0 commit comments

Comments
 (0)