Skip to content

Commit

Permalink
[bugfix-681] addressed linting and sonarqube issues
Browse files Browse the repository at this point in the history
  • Loading branch information
silentrald committed Dec 5, 2024
1 parent c2e77f2 commit 8771ac2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/main/services/bs-version-lib.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];

Expand Down Expand Up @@ -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);
}

Expand All @@ -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;
}
Expand Down
2 changes: 0 additions & 2 deletions src/main/services/linux.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8771ac2

Please sign in to comment.