Format fixes

This commit is contained in:
Justin Spahr-Summers
2025-02-12 18:10:25 +00:00
parent b324378b2c
commit 410a6f33dc
4 changed files with 7 additions and 8 deletions

View File

@@ -185,13 +185,12 @@ const PORT = process.env.PORT || 3000;
try {
const server = app.listen(PORT);
server.on('listening', () => {
server.on("listening", () => {
const addr = server.address();
const port = typeof addr === 'string' ? addr : addr?.port;
const port = typeof addr === "string" ? addr : addr?.port;
console.log(`Proxy server listening on port ${port}`);
});
} catch (error) {
console.error('Failed to start server:', error);
console.error("Failed to start server:", error);
process.exit(1);
}