Browse Source

Fixes a typescript bug

main
Eric Amodio 8 years ago
parent
commit
a6f5fa59e4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/gitContentProvider.ts

+ 1
- 1
src/gitContentProvider.ts View File

@ -14,7 +14,7 @@ export default class GitContentProvider implements TextDocumentContentProvider {
const data = GitProvider.fromGitUri(uri);
const fileName = data.originalFileName || data.fileName;
try {
let text = await this.git.getVersionedFileText(fileName, data.repoPath, data.sha);
let text = await this.git.getVersionedFileText(fileName, data.repoPath, data.sha) as string;
if (data.decoration) {
text = `${data.decoration}\n${text}`;
}

Loading…
Cancel
Save