From 0009aad93f7dad416e11bb7af8255e779393dced Mon Sep 17 00:00:00 2001 From: ptazithos Date: Tue, 9 May 2023 00:58:09 +0800 Subject: [PATCH] Remove empty initial object --- plugins/log/guest-js/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/log/guest-js/index.ts b/plugins/log/guest-js/index.ts index 6bc36c04..77ab7009 100644 --- a/plugins/log/guest-js/index.ts +++ b/plugins/log/guest-js/index.ts @@ -51,7 +51,7 @@ async function log( return name.length > 0 && location !== "[native code]"; }); - const { file, line, keyValues = {} } = options ?? {}; + const { file, line, keyValues } = options ?? {}; let location = filtered?.[0]?.filter((v) => v.length > 0).join("@"); if (location === "Error") {