Skip to content

Commit 496c82c

Browse files
committed
style(logger): fix Biome formatting issues
- Condense type annotation to single line (line 1206) - Condense multi-line logical OR expression (line 1472) - Remove unnecessary blank line (line 1604)
1 parent cf9a9f4 commit 496c82c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/logger.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,8 +1203,7 @@ export class Logger {
12031203
const text = this.#stripSymbols(msg)
12041204
// Note: Step messages always go to stdout (unlike info/fail/etc which go to stderr).
12051205
const indent = this.#getIndent('stdout')
1206-
const con = this.#getConsole() as typeof console &
1207-
Record<string, unknown>
1206+
const con = this.#getConsole() as typeof console & Record<string, unknown>
12081207
con.log(
12091208
applyLinePrefix(`${LOG_SYMBOLS.step} ${text}`, {
12101209
prefix: indent,
@@ -1470,9 +1469,7 @@ export class Logger {
14701469
// 3. Fall back to con._stdout (which applies formatting)
14711470
const ctorArgs = privateConstructorArgs.get(this) ?? []
14721471
const stdout =
1473-
this.#originalStdout ||
1474-
(ctorArgs[0] as any)?.stdout ||
1475-
con._stdout
1472+
this.#originalStdout || (ctorArgs[0] as any)?.stdout || con._stdout
14761473
stdout.write(text)
14771474
this[lastWasBlankSymbol](false)
14781475
return this
@@ -1601,7 +1598,6 @@ Object.defineProperties(
16011598
}
16021599
}
16031600
privateConsole.set(this, con)
1604-
16051601
}
16061602
const result = (con as any)[key](...args)
16071603
return result === undefined || result === con ? this : result

0 commit comments

Comments
 (0)