소스 검색

Removes unneeded async

main
Eric Amodio 1 년 전
부모
커밋
0d3d10123d
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. +5
    -5
      src/git/gitProviderService.ts

+ 5
- 5
src/git/gitProviderService.ts 파일 보기

@ -1448,7 +1448,7 @@ export class GitProviderService implements Disposable {
@gate()
@log()
async getCurrentUser(repoPath: string | Uri): Promise<GitUser | undefined> {
getCurrentUser(repoPath: string | Uri): Promise<GitUser | undefined> {
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<GitDiff | undefined> {
getDiffForFile(uri: GitUri, ref1: string | undefined, ref2?: string): Promise<GitDiff | undefined> {
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<GitDiff | undefined> {
getDiffForFileContents(uri: GitUri, ref: string, contents: string): Promise<GitDiff | undefined> {
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,

불러오는 중...
취소
저장