Skip to content

Commit

Permalink
Remove unnecessary awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Dec 19, 2024
1 parent 0754f05 commit 83da600
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vs/workbench/api/common/positron/extHostConnections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,22 @@ export class ExtHostConnections implements extHostProtocol.ExtHostConnectionsSha
if (!driver || !driver.connect) {
throw new Error(`Driver ${driverId} does not support connecting`);
}
return await driver.connect(code);
return driver.connect(code);
}

public async $driverCheckDependencies(driverId: string): Promise<boolean> {
const driver = this._drivers.find(d => d.driverId === driverId);
if (!driver || !driver.checkDependencies) {
throw new Error(`Driver ${driverId} does not support checking dependencies`);
}
return await driver.checkDependencies();
return driver.checkDependencies();
}

public async $driverInstallDependencies(driverId: string): Promise<boolean> {
const driver = this._drivers.find(d => d.driverId === driverId);
if (!driver || !driver.installDependencies) {
throw new Error(`Driver ${driverId} does not support installing dependencies`);
}
return await driver.installDependencies();
return driver.installDependencies();
}
}

0 comments on commit 83da600

Please sign in to comment.