mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[bugfix-681] addressed linting and sonarqube issues
This commit is contained in:
@@ -15,10 +15,10 @@ export class BSVersionLibService {
|
||||
|
||||
private static instance: BSVersionLibService;
|
||||
|
||||
private linuxService: LinuxService;
|
||||
private utilsService: UtilsService;
|
||||
private requestService: RequestService;
|
||||
private configService: StaticConfigurationService;
|
||||
private readonly linuxService: LinuxService;
|
||||
private readonly utilsService: UtilsService;
|
||||
private readonly requestService: RequestService;
|
||||
private readonly configService: StaticConfigurationService;
|
||||
|
||||
private bsVersions: BSVersion[];
|
||||
|
||||
@@ -48,7 +48,7 @@ export class BSVersionLibService {
|
||||
private async getLocalVersions(): Promise<BSVersion[]> {
|
||||
const localVersionsPath = path.join(this.utilsService.getAssestsJsonsPath(), this.VERSIONS_FILE);
|
||||
|
||||
if (!this.shouldLoadFromConfig()) {
|
||||
if (!(await this.shouldLoadFromConfig())) {
|
||||
return readJSON(localVersionsPath);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ export class BSVersionLibService {
|
||||
}
|
||||
|
||||
private async updateLocalVersions(versions: BSVersion[]): Promise<void> {
|
||||
if (this.shouldLoadFromConfig()) {
|
||||
if (await this.shouldLoadFromConfig()) {
|
||||
this.configService.set("versions", versions);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -5,8 +5,6 @@ import { BS_APP_ID, IS_FLATPAK, PROTON_BINARY_PREFIX, WINE_BINARY_PREFIX } from
|
||||
import { StaticConfigurationService } from "./static-configuration.service";
|
||||
import { CustomError } from "shared/models/exceptions/custom-error.class";
|
||||
import { BSLaunchError, LaunchOption } from "shared/models/bs-launch";
|
||||
import { app } from "electron";
|
||||
import config from "../../../electron-builder.config";
|
||||
import { bsmExec } from "main/helpers/os.helpers";
|
||||
|
||||
export class LinuxService {
|
||||
|
||||
Reference in New Issue
Block a user