From 0abeddc27bc8bb6cb353e00ef50dee45be4922b7 Mon Sep 17 00:00:00 2001 From: Konstantin Ruzavin <36166921+avgkoster@users.noreply.github.com> Date: Sun, 29 Oct 2023 17:46:18 +0500 Subject: [PATCH] Del unused dep, fix lint --- server.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server.js b/server.js index a075819476..24a1bf73c8 100644 --- a/server.js +++ b/server.js @@ -1,7 +1,6 @@ import connect from "connect"; import http from "node:http"; import bodyParser from "body-parser"; -import url, { URL } from "node:url"; import { spawnSync } from "node:child_process"; import os from "node:os"; import fs from "node:fs"; @@ -26,12 +25,8 @@ app.use( app.use(compression()); const gitClone = (repoUrl, branch = null) => { - const tempDir = fs.mkdtempSync( - path.join( - os.tmpdir(), - path.basename(repoUrl) - ) + path.join(os.tmpdir(),path.basename(repoUrl)) ); if (branch == null) {