From f12b374b9002098be831cdc68da4516c57ac8433 Mon Sep 17 00:00:00 2001 From: xdd <45672942@qq.com> Date: Sat, 14 Dec 2024 12:42:41 +0800 Subject: [PATCH] chore: format code --- index.js | 3 +-- package.json | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 7a6c865..ed17ee3 100644 --- a/index.js +++ b/index.js @@ -37,10 +37,9 @@ function ensureDirectoryExists(filePath) { // 下载文件的函数 function downloadFile(url, filePath) { - ensureDirectoryExists(filePath); - // 如果文件已存��,跳过下载 + // 如果文件已存在,跳过下载 if (fs.existsSync(filePath)) { console.log(`File already exists: ${filePath}`); return; diff --git a/package.json b/package.json index d2ae958..9cfcaab 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,7 @@ { "name": "resource-save-script", - "version": "1.0.3", + "version": "1.0.4", "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, "author": "", "license": "ISC", "description": "HTTP server with auto-download capability",