Skip to content

Commit 20b6fe7

Browse files
committed
q
1 parent 19daf00 commit 20b6fe7

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

server-template.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import path from "path";
99

1010
import fs from "fs";
1111

12-
import https from "https";
13-
1412
import express from "express";
1513
import type { Application, Request, Response, NextFunction } from "express";
1614

@@ -29,13 +27,7 @@ import { fileURLToPath } from "url";
2927
const __filename = fileURLToPath(import.meta.url);
3028
const __dirname = path.dirname(__filename);
3129

32-
const log = (function () {
33-
try {
34-
return console.log;
35-
} catch (e) {
36-
return function () {};
37-
}
38-
})();
30+
const log = console.log;
3931

4032
const web = path.resolve(__dirname, ".");
4133

0 commit comments

Comments
 (0)