mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
patch eslint rules
This commit is contained in:
15 files changed
+24
-19
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user