Skip to content

Commit

Permalink
Fix formatting for debug.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Apr 8, 2024
1 parent 80595ea commit 1753c2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ class Debug {

// The createLogger() creates either an empty function or a bound console.log
// function so we can retain accurate line lumbers on Debug.log() calls.
function createLogger(enabled: boolean, prefix?: string): (...args: unknown[]) => void {
function createLogger(
enabled: boolean,
prefix?: string,
): (...args: unknown[]) => void {
if (enabled) {
const a = console.log.bind(console, "%c%s", "color: #265BA0", prefix);
return a;
Expand Down

0 comments on commit 1753c2d

Please sign in to comment.