mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix ci warnings
This commit is contained in:
13 files changed
+30
-22
No files matched your search
@@ -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 = {};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user