Browse Source

Adds better protection

main
Eric Amodio 5 years ago
parent
commit
0b9c4954eb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/git/gitUri.ts

+ 1
- 1
src/git/gitUri.ts View File

@ -167,7 +167,7 @@ export class GitUri extends ((Uri as any) as UriEx) {
return GitService.shortenSha(this.sha);
}
@memoize<GitUri['documentUri']>(options => `${options!.useVersionedPath ? 'versioned' : ''}`)
@memoize<GitUri['documentUri']>(options => `${options?.useVersionedPath ? 'versioned' : ''}`)
documentUri({ useVersionedPath }: { useVersionedPath?: boolean } = {}) {
if (useVersionedPath && this.versionedPath !== undefined) return GitUri.file(this.versionedPath);
if (this.scheme !== 'file') return this;

Loading…
Cancel
Save