Skip to content

Commit 57b3047

Browse files
committed
use nullish coalescing
1 parent 6b49e2d commit 57b3047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/logging/src/console-logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class ConsoleLogger extends Logger<ConsoleChannelConfig> implements Loggi
6464
* error => bold red
6565
*/
6666
getColorForLevel (label: string): ChalkInstance {
67-
return this.logColors()[label] || Chalk.white
67+
return this.logColors()[label] ?? Chalk.white
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)