Switches to use as rather than <>

This commit is contained in:
Eric Amodio
2017-01-02 00:06:42 -05:00
parent 4e65eb6344
commit a52b0c9b73
5 changed files with 13 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ export default class DiffWithPreviousCommand extends EditorCommand {
const gitUri = GitUri.fromUri(uri, this.git);
try {
const log = await this.git.getLogForFile(gitUri.fsPath, gitUri.sha, gitUri.repoPath, <Range>rangeOrLine);
const log = await this.git.getLogForFile(gitUri.fsPath, gitUri.sha, gitUri.repoPath, rangeOrLine as Range);
if (!log) return window.showWarningMessage(`Unable to open diff. File is probably not under source control`);
const sha = (commit && commit.sha) || gitUri.sha;