Skip to content

Commit

Permalink
use nullish coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed May 4, 2024
1 parent 6b49e2d commit 57b3047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/logging/src/console-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class ConsoleLogger extends Logger<ConsoleChannelConfig> implements Loggi
* error => bold red
*/
getColorForLevel (label: string): ChalkInstance {
return this.logColors()[label] || Chalk.white
return this.logColors()[label] ?? Chalk.white
}

/**
Expand Down

0 comments on commit 57b3047

Please sign in to comment.