Browse Source

Removes unneeded overload

main
Eric Amodio 2 years ago
parent
commit
f943e8a36c
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/git/gitProviderService.ts

+ 1
- 4
src/git/gitProviderService.ts View File

@ -1889,10 +1889,7 @@ export class GitProviderService implements Disposable {
return provider.getOrOpenScmRepository(path); 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); const encoding = configuration.getAny<string>('files.encoding', uri);
return encoding != null && encodingExists(encoding) ? encoding : 'utf8'; return encoding != null && encodingExists(encoding) ? encoding : 'utf8';
} }

Loading…
Cancel
Save