Skip to content

Commit 327209b

Browse files
committed
Add parens
1 parent 6731ce5 commit 327209b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/github/prComment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class TemporaryComment extends CommentBase {
175175
this.mode = vscode.CommentMode.Preview;
176176
this.originalAuthor = {
177177
name: currentUser.specialDisplayName ?? currentUser.login,
178-
iconPath: currentUser.avatarUrl && DataUri.isGitHubDotComAvatar(currentUser.avatarUrl) ? vscode.Uri.parse(`${currentUser.avatarUrl}&s=64`) : undefined,
178+
iconPath: (currentUser.avatarUrl && DataUri.isGitHubDotComAvatar(currentUser.avatarUrl)) ? vscode.Uri.parse(`${currentUser.avatarUrl}&s=64`) : undefined,
179179
};
180180
this.label = isDraft ? vscode.l10n.t('Pending') : undefined;
181181
this.state = isDraft ? vscode.CommentState.Draft : vscode.CommentState.Published;
@@ -238,7 +238,7 @@ export class GHPRComment extends CommentBase {
238238
this.rawComment = comment;
239239
this.originalAuthor = {
240240
name: comment.user?.specialDisplayName ?? comment.user!.login,
241-
iconPath: comment.user && comment.user.avatarUrl && DataUri.isGitHubDotComAvatar(comment.user.avatarUrl) ? vscode.Uri.parse(comment.user.avatarUrl) : undefined,
241+
iconPath: (comment.user && comment.user.avatarUrl && DataUri.isGitHubDotComAvatar(comment.user.avatarUrl)) ? vscode.Uri.parse(comment.user.avatarUrl) : undefined,
242242
};
243243
const url = vscode.Uri.parse(comment.url);
244244
this.githubRepository = githubRepositories?.find(repo => repo.remote.host === url.authority);

0 commit comments

Comments
 (0)