mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
1 parent
fbbff669a3
commit
37d2eb3636
13 files changed
+840
-97
No files matched your search
@@ -12,7 +12,8 @@ export function isDebugMode(env: Env): boolean {
|
||||
if (env.DEBUG_MODE === "true") return true;
|
||||
const anyEnv = env as unknown as Record<string, string | undefined>;
|
||||
if (anyEnv["debug_mode"] === "true") return true;
|
||||
const proc = (globalThis as unknown as { process?: { env?: Record<string, string | undefined> } }).process;
|
||||
const proc = (globalThis as unknown as { process?: { env?: Record<string, string | undefined> } })
|
||||
.process;
|
||||
if (proc?.env?.NODE_ENV !== "test") {
|
||||
if (proc?.env?.DEBUG_MODE === "true" || proc?.env?.debug_mode === "true") return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user