From de123dacf324be2ce61255cdab21fb1b5c5b9c13 Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Sun, 28 Jan 2024 19:02:47 -0800 Subject: [PATCH] Format. --- noname/init/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/noname/init/index.js b/noname/init/index.js index a3f9d8888..e380937c5 100644 --- a/noname/init/index.js +++ b/noname/init/index.js @@ -33,7 +33,7 @@ export function canUseHttpProtocol() { try { require('express'); return true; - } catch { + } catch { return false; } } @@ -530,7 +530,7 @@ export async function boot() { } // await Promise.allSettled(_status.extensionLoading); - _status.extensionLoaded.filter(name=>game.hasExtension(name)).forEach((name) => { + _status.extensionLoaded.filter(name => game.hasExtension(name)).forEach((name) => { lib.announce.publish("Noname.Init.Extension.onLoad", name); lib.announce.publish(`Noname.Init.Extension.${name}.onLoad`, void 0); }); @@ -895,9 +895,9 @@ async function setOnError() { } //解析parsex里的content fun内容(通常是技能content) // @ts-ignore - else if (err && err.stack && ['at Object.eval [as content]', 'at Proxy.content'].some(str =>{ + else if (err && err.stack && ['at Object.eval [as content]', 'at Proxy.content'].some(str => { let stackSplit1 = err.stack.split('\n')[1]; - if(stackSplit1){ + if (stackSplit1) { return stackSplit1.trim().startsWith(str); } return false;