Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
luckfunc committed Dec 14, 2024
1 parent 22c7b68 commit f12b374
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ function ensureDirectoryExists(filePath) {

// 下载文件的函数
function downloadFile(url, filePath) {

ensureDirectoryExists(filePath);

// 如果文件已存��,跳过下载
// 如果文件已存在,跳过下载
if (fs.existsSync(filePath)) {
console.log(`File already exists: ${filePath}`);
return;
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit f12b374

Please sign in to comment.