patch eslint rules

This commit is contained in:
undefined committed 2026-03-30 20:02:19 +08:00
1 parent 403a762da1
commit 642662f505
15 files changed
+24 -19

No files matched your search

+2 -2
View File
@@ -287,7 +287,7 @@ export default class VJ4 implements Session {
ver = fs.readFileSync(path.join(filePath, 'version')).toString();
} catch (e) { /* ignore */ }
if (version === ver) {
fs.writeFileSync(path.join(filePath, 'lastUsage'), new Date().getTime().toString());
fs.writeFileSync(path.join(filePath, 'lastUsage'), Date.now().toString());
return filePath;
}
fs.removeSync(filePath);
@@ -295,7 +295,7 @@ export default class VJ4 implements Session {
fs.ensureDirSync(domainDir);
await this.problemData(domainId, pid, filePath, 3, next);
fs.writeFileSync(path.join(filePath, 'version'), version);
fs.writeFileSync(path.join(filePath, 'lastUsage'), new Date().getTime().toString());
fs.writeFileSync(path.join(filePath, 'lastUsage'), Date.now().toString());
return filePath;
}