LGTM: Unnecessary self assignment in pullRequestNode #1421
Closed
Description
Found by LGTM report link
Whole this block of code seems to be useless. But i`m not so experienced in this module to remove it so i decided to open issue firstly.
if (commentThreadCache[params.fileName]) {
commentThreadCache[params.fileName].forEach(thread => {
if (!thread.comments) {
return;
}
if (thread.comments.find((cmt: GHPRComment) => cmt.commentId === comment.commentId)) {
thread.comments = thread.comments;
}
});
}
@rebornix @RMacfarlane can you remember what is the job of this code?
Should reaction authors be listed in commentThreadLabel
as "Participants"?
Metadata
Assignees
Labels
No labels