mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 08:15:53 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
/** Thin logging wrapper — silent in test environment, uses console in production. */
|
||||
const isTest = process.env.NODE_ENV === "test" || (typeof Bun !== "undefined" && !!Bun.env.BUN_TEST);
|
||||
const isTest =
|
||||
process.env.NODE_ENV === 'test' ||
|
||||
(typeof Bun !== 'undefined' && !!Bun.env.BUN_TEST)
|
||||
|
||||
export function log(...args: unknown[]): void {
|
||||
if (!isTest) console.log(...args);
|
||||
if (!isTest) console.log(...args)
|
||||
}
|
||||
|
||||
export function error(...args: unknown[]): void {
|
||||
if (!isTest) console.error(...args);
|
||||
if (!isTest) console.error(...args)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user