Skip to content

Commit f12b374

Browse files
committed
chore: format code
1 parent 22c7b68 commit f12b374

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ function ensureDirectoryExists(filePath) {
3737

3838
// 下载文件的函数
3939
function downloadFile(url, filePath) {
40-
4140
ensureDirectoryExists(filePath);
4241

43-
// 如果文件已存��,跳过下载
42+
// 如果文件已存在,跳过下载
4443
if (fs.existsSync(filePath)) {
4544
console.log(`File already exists: ${filePath}`);
4645
return;

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"name": "resource-save-script",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"main": "index.js",
5-
"scripts": {
6-
"test": "echo \"Error: no test specified\" && exit 1"
7-
},
85
"author": "",
96
"license": "ISC",
107
"description": "HTTP server with auto-download capability",

0 commit comments

Comments
 (0)