style: fix lint

splashcat-exporter-v2
spacemeowx2 2024-02-29 18:29:21 +08:00
parent cab8af8e31
commit 7b18e23988
1 changed files with 6 additions and 6 deletions

View File

@ -302,7 +302,7 @@ export class App {
splatnet, splatnet,
); );
using bar = this.exporterProgress("Export vs games"); using bar1 = this.exporterProgress("Export vs games");
const fetcher = new GameFetcher({ const fetcher = new GameFetcher({
cache: this.opts.cache ?? new FileCache(this.profile.state.cacheDir), cache: this.opts.cache ?? new FileCache(this.profile.state.cacheDir),
state: this.profile.state, state: this.profile.state,
@ -322,7 +322,7 @@ export class App {
gameListFetcher, gameListFetcher,
stepProgress: stats[e.name], stepProgress: stats[e.name],
onStep: () => { onStep: () => {
bar.redraw(e.name, progress(stats[e.name])); bar1.redraw(e.name, progress(stats[e.name]));
}, },
}), }),
) )
@ -333,7 +333,7 @@ export class App {
), ),
); );
await bar.end(); await bar1.end();
this.printStats(stats); this.printStats(stats);
if (errors.length > 0) { if (errors.length > 0) {
@ -355,7 +355,7 @@ export class App {
} else { } else {
const gameListFetcher = new CoopListFetcher(splatnet); const gameListFetcher = new CoopListFetcher(splatnet);
using bar = this.exporterProgress("Export coop games"); using bar2 = this.exporterProgress("Export coop games");
const fetcher = new GameFetcher({ const fetcher = new GameFetcher({
cache: this.opts.cache ?? new FileCache(this.profile.state.cacheDir), cache: this.opts.cache ?? new FileCache(this.profile.state.cacheDir),
state: this.profile.state, state: this.profile.state,
@ -373,7 +373,7 @@ export class App {
gameListFetcher, gameListFetcher,
stepProgress: stats[e.name], stepProgress: stats[e.name],
onStep: () => { onStep: () => {
bar.redraw(e.name, progress(stats[e.name])); bar2.redraw(e.name, progress(stats[e.name]));
}, },
}), }),
) )
@ -384,7 +384,7 @@ export class App {
), ),
); );
await bar.end(); await bar2.end();
this.printStats(stats); this.printStats(stats);
if (errors.length > 0) { if (errors.length > 0) {