瀏覽代碼

Removes unneeded overload

main
Eric Amodio 2 年之前
父節點
當前提交
f943e8a36c
共有 1 個檔案被更改,包括 1 行新增4 行删除
  1. +1
    -4
      src/git/gitProviderService.ts

+ 1
- 4
src/git/gitProviderService.ts 查看文件

@ -1889,10 +1889,7 @@ export class GitProviderService implements Disposable {
return provider.getOrOpenScmRepository(path);
}
static getEncoding(repoPath: string, fileName: string): string;
static getEncoding(uri: Uri): string;
static getEncoding(repoPathOrUri: string | Uri, fileName?: string): string {
const uri = typeof repoPathOrUri === 'string' ? GitUri.resolveToUri(fileName!, repoPathOrUri) : repoPathOrUri;
static getEncoding(uri: Uri): string {
const encoding = configuration.getAny<string>('files.encoding', uri);
return encoding != null && encodingExists(encoding) ? encoding : 'utf8';
}

Loading…
取消
儲存