From 0d3d10123d4a71eb6e77960a3274b44ee2020b7f Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 6 Mar 2023 18:22:00 -0500 Subject: [PATCH] Removes unneeded async --- src/git/gitProviderService.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/git/gitProviderService.ts b/src/git/gitProviderService.ts index 2591165..7b16b12 100644 --- a/src/git/gitProviderService.ts +++ b/src/git/gitProviderService.ts @@ -1448,7 +1448,7 @@ export class GitProviderService implements Disposable { @gate() @log() - async getCurrentUser(repoPath: string | Uri): Promise { + getCurrentUser(repoPath: string | Uri): Promise { const { provider, path } = this.getProvider(repoPath); return provider.getCurrentUser(path); } @@ -1468,7 +1468,7 @@ export class GitProviderService implements Disposable { * @param ref1 Commit to diff from * @param ref2 Commit to diff to */ - async getDiffForFile(uri: GitUri, ref1: string | undefined, ref2?: string): Promise { + getDiffForFile(uri: GitUri, ref1: string | undefined, ref2?: string): Promise { const { provider } = this.getProvider(uri); return provider.getDiffForFile(uri, ref1, ref2); } @@ -1480,7 +1480,7 @@ export class GitProviderService implements Disposable { * @param ref Commit to diff from * @param contents Contents to use for the diff */ - async getDiffForFileContents(uri: GitUri, ref: string, contents: string): Promise { + getDiffForFileContents(uri: GitUri, ref: string, contents: string): Promise { const { provider } = this.getProvider(uri); return provider.getDiffForFileContents(uri, ref, contents); } @@ -1493,7 +1493,7 @@ export class GitProviderService implements Disposable { * @param ref1 Commit to diff from * @param ref2 Commit to diff to */ - async getDiffForLine( + getDiffForLine( uri: GitUri, editorLine: number, ref1: string | undefined, @@ -1504,7 +1504,7 @@ export class GitProviderService implements Disposable { } @log() - async getDiffStatus( + getDiffStatus( repoPath: string | Uri, ref1?: string, ref2?: string,