Skip to content

Commit

Permalink
Revert "Outdated comments in a non-checked out PR cause a console err…
Browse files Browse the repository at this point in the history
…or (#3290)"

This reverts commit 27f435f.
  • Loading branch information
alexr00 committed Feb 3, 2022
1 parent d716c21 commit 362d450
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/view/pullRequestCommentController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ export class PullRequestCommentController implements CommentHandler, CommentReac
this._commentThreadCache[this.getCommentThreadCacheKey(fileName, isBase)] = threadsByPath[fileName]
.filter(
thread =>
((thread.diffSide === DiffSide.LEFT && isBase) ||
(thread.diffSide === DiffSide.RIGHT && !isBase))
&& (thread.line !== null),
(thread.diffSide === DiffSide.LEFT && isBase) ||
(thread.diffSide === DiffSide.RIGHT && !isBase),
)
.map(thread => {
const range = new vscode.Range(
Expand Down

0 comments on commit 362d450

Please sign in to comment.