From 0a8ceb9e6349284e75545a01ffad608b020f78e2 Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Mon, 11 Dec 2023 01:12:54 +0100 Subject: Actually run prettier --- src/bundle/Server.ts | 4 +--- src/bundle/start.ts | 22 ++++------------------ src/bundle/stats.ts | 4 ++-- 3 files changed, 7 insertions(+), 23 deletions(-) (limited to 'src/bundle') diff --git a/src/bundle/Server.ts b/src/bundle/Server.ts index d281120d..ba1715e1 100644 --- a/src/bundle/Server.ts +++ b/src/bundle/Server.ts @@ -51,9 +51,7 @@ async function main() { await Config.init(); await Sentry.init(app); - await new Promise((resolve) => - server.listen({ port }, () => resolve(undefined)), - ); + await new Promise((resolve) => server.listen({ port }, () => resolve(undefined))); await Promise.all([api.start(), cdn.start(), gateway.start()]); Sentry.errorHandler(app); diff --git a/src/bundle/start.ts b/src/bundle/start.ts index df50fd4c..beb4762d 100644 --- a/src/bundle/start.ts +++ b/src/bundle/start.ts @@ -49,21 +49,11 @@ if (cluster.isPrimary) { ███████║██║ ██║ ██║╚██████╗███████╗██████╔╝██║ ██║██║ ██║ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ - spacebar-server | ${yellow( - `Pre-release (${ - commit !== null - ? commit.slice(0, 7) - : "Unknown (Git cannot be found)" - })`, - )} + spacebar-server | ${yellow(`Pre-release (${commit !== null ? commit.slice(0, 7) : "Unknown (Git cannot be found)"})`)} -Commit Hash: ${ - commit !== null - ? `${cyan(commit)} (${yellow(commit.slice(0, 7))})` - : "Unknown (Git cannot be found)" - } +Commit Hash: ${commit !== null ? `${cyan(commit)} (${yellow(commit.slice(0, 7))})` : "Unknown (Git cannot be found)"} Cores: ${cyan(os.cpus().length)} (Using ${cores} thread(s).) -`), +`) ); if (commit == null) { @@ -98,11 +88,7 @@ Cores: ${cyan(os.cpus().length)} (Using ${cores} thread(s).) }); cluster.on("exit", (worker) => { - console.log( - `[Worker] ${red( - `died with PID: ${worker.process.pid} , restarting ...`, - )}`, - ); + console.log(`[Worker] ${red(`died with PID: ${worker.process.pid} , restarting ...`)}`); cluster.fork(); }); } diff --git a/src/bundle/stats.ts b/src/bundle/stats.ts index b690eb75..707b77ee 100644 --- a/src/bundle/stats.ts +++ b/src/bundle/stats.ts @@ -34,8 +34,8 @@ export function initStats() { console.warn( red( `[Process] Warning Spacebar is running as root, this highly discouraged and might expose your system vulnerable to attackers.` + - `Please run Spacebar as a user without root privileges.`, - ), + `Please run Spacebar as a user without root privileges.` + ) ); } -- cgit 1.5.1