Skip to content

Commit

Permalink
Remove Promise.resolve() from async functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-mcmanus committed May 19, 2023
1 parent 9658cc6 commit e59daea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3741,7 +3741,7 @@ export class DefaultClient implements Client {
public async addTrustedCompiler(path: string): Promise<void> {
// Detect duplicate paths or invalid paths.
if (trustedCompilerPaths.includes(path) || path === null || path === undefined) {
return Promise.resolve();
return;
}
trustedCompilerPaths.push(path);
compilerDefaults = await this.requestCompiler(path);
Expand Down
2 changes: 1 addition & 1 deletion Extension/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export async function deactivate(): Promise<void> {
Telemetry.deactivate();
disposables.forEach(d => d.dispose());
if (languageServiceDisabled) {
return Promise.resolve();
return;
}
await LanguageServer.deactivate();
disposeOutputChannels();
Expand Down

0 comments on commit e59daea

Please sign in to comment.