From 018210c16a4b7bcd79d5722a17770a8057d58076 Mon Sep 17 00:00:00 2001 From: KnorpelSenf Date: Fri, 22 Mar 2024 12:42:16 +0100 Subject: [PATCH] fix: avoid top-level await --- src/platform.deno.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform.deno.ts b/src/platform.deno.ts index b8f37474..47f7668d 100644 --- a/src/platform.deno.ts +++ b/src/platform.deno.ts @@ -8,7 +8,7 @@ const DEBUG = "DEBUG"; if (isDeno) { debug.useColors = () => !Deno.noColor; const env = { name: "env", variable: DEBUG } as const; - const res = await Deno.permissions.query(env); + const res = Deno.permissions.querySync(env); let namespace: string | undefined = undefined; if (res.state === "granted") namespace = Deno.env.get(DEBUG); if (namespace) debug.enable(namespace);