[feature-274] fix non awaited promise in if statement

This commit is contained in:
MathieuG-P
2023-11-07 23:25:44 +01:00
parent 7b88100758
commit a8dd2d72f5
@@ -96,7 +96,7 @@ export class OculusLauncherService extends AbstractLauncherService implements St
const prepareOriginalVersion: () => Promise<string> = async () => {
await this.restoreOriginalBeatSaber();
const bsPath = this.oculus.getGameFolder(OCULUS_BS_DIR);
const bsPath = await this.oculus.getGameFolder(OCULUS_BS_DIR);
if(!bsPath){
throw new Error("Oculus Beat Saber path not found");
}