From 2931b58276a88f22071c2e0b7695e6be1004b9ae Mon Sep 17 00:00:00 2001 From: MathieuG-P Date: Fri, 23 Dec 2022 21:53:07 +0100 Subject: [PATCH] clean --- src/renderer/services/maps-downloader.service.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/renderer/services/maps-downloader.service.ts b/src/renderer/services/maps-downloader.service.ts index 610c3deb..297319b0 100644 --- a/src/renderer/services/maps-downloader.service.ts +++ b/src/renderer/services/maps-downloader.service.ts @@ -1,16 +1,13 @@ import { DownloadMapsModal } from "renderer/components/modal/modal-types/download-maps-modal.component"; import { map, filter } from "rxjs/operators"; -import { BehaviorSubject } from "rxjs"; +import { BehaviorSubject, timer, Observable } from "rxjs"; import { BSVersion } from "shared/bs-version.interface"; import { ModalResponse, ModalService } from "./modale.service"; -import { Observable } from "rxjs"; import { ProgressBarService } from "./progress-bar.service"; import { ProgressionInterface } from "shared/models/progress-bar"; import { BsvMapDetail } from "shared/models/maps"; import { IpcService } from "./ipc.service"; -import { getMapZipUrlFromMapDetails } from "renderer/helpers/maps-utils"; import { OsDiagnosticService } from "./os-diagnostic.service"; -import { timer } from "rxjs"; import equal from "fast-deep-equal/es6"; import { CSSProperties } from "react"; @@ -41,7 +38,7 @@ export class MapsDownloaderService { this.os = OsDiagnosticService.getInstance(); this.mapsQueue$.pipe(filter(queue => queue.length === 1 && !this.isDownloading)).subscribe(() => this.startDownloadMaps()); - this.mapsQueue$.pipe(filter(queue => queue.length === 0)).subscribe(() => this.queueMaxLenght = 0); + this.mapsQueue$.pipe(filter(queue => queue.length === 0)).subscribe(() => { this.queueMaxLenght = 0 }); } private async startDownloadMaps(){