File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments