From 249344bd03c9e50b3498e9ae75f8609e9016a78e Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Tue, 16 Nov 2021 22:13:04 +0800 Subject: [PATCH] style: Format code --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 21c1453..389adff 100755 --- a/index.js +++ b/index.js @@ -156,7 +156,7 @@ app.use((req, res, next) => { function relative(...paths) { const finalPath = paths.reduce((a, b) => path.join(a, b), process.cwd()); if (path.relative(process.cwd(), finalPath).startsWith("..")) { - throw new Error("Failed to resolve path outside of the working directory") + throw new Error("Failed to resolve path outside of the working directory"); } return finalPath; }