Skip to content

Commit f880cc9

Browse files
committed
chore: eslint fix
1 parent 037d6d4 commit f880cc9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

common/scripts/check.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ const {readStore} = require("../utils/store");
66
const args = process.argv.slice(2);
77
let name;
88
switch (args[0]) {
9-
case "-r":
9+
case "-r": {
1010
const random = readStore("random-question-info")
1111
name = `${random.id}.${random.enName}`;
1212
console.log(`[leet-check]检测当前随机题目:${name}`)
1313
break;
14-
case "-i":
15-
id = args[1];
14+
}
15+
16+
case "-i": {
17+
let id = args[1];
1618
const specified = readStore("specified-question-info")
1719
name = `${specified.id}.${specified.enName}`;
1820
if(id===undefined&&name.startsWith("undefined")) {
@@ -21,11 +23,14 @@ switch (args[0]) {
2123
}
2224
console.log(`[leet-check]检测题目:${name}`)
2325
break;
26+
}
27+
2428
case "-t":
25-
default:
29+
default: {
2630
const question = readStore("today-question-info")
2731
name = `${question.id}.${question.enName}`;
2832
console.log(`[leet-check]检测题目:${name}`)
33+
}
2934
break;
3035
}
3136
temExe('node ./src/{0}/index.js',name)

0 commit comments

Comments
 (0)