fix ci warnings

This commit is contained in:
undefined committed 2025-07-24 14:00:13 +08:00
1 parent 98d9ddf97a
commit 4b2d4c74cd
13 files changed
+30 -22

No files matched your search

+4 -1
View File
@@ -127,7 +127,10 @@ export class JudgeTask {
if (filenames.length) {
logger.info(`Getting problem data: ${this.session?.config.host || 'local'}/${source}`);
this.next({ message: 'Syncing testdata, please wait...' });
await this.session.fetchFile(source, Object.fromEntries(files.map((i) => [i.name, join(filePath, i.name)])));
await this.session.fetchFile(source, Object.fromEntries(
files.filter((i) => filenames.includes(i.name))
.map((i) => [i.name, join(filePath, i.name)]),
));
await fs.writeFile(join(filePath, 'etags'), JSON.stringify(version));
this.compileCache = {};
}