Skip to content

Commit 8760922

Browse files
committed
Fix comment
1 parent da783fc commit 8760922

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

llvm/utils/git/code-lint-helper.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,8 @@ def create_comment_text(
104104

105105
# TODO: Refactor this
106106
def find_comment(self, pr: Any) -> Any:
107-
all_linter_names = list(map(attrgetter("name"), ALL_LINTERS))
108-
other_linter_names = [name for name in all_linter_names if name != self.name]
109-
110-
other_tags = [
111-
self.COMMENT_TAG.format(linter=name) for name in other_linter_names
112-
]
113-
114107
for comment in pr.as_issue().get_comments():
115-
body = comment.body
116-
if self.comment_tag in body and not any(
117-
other_tag in body for other_tag in other_tags
118-
):
108+
if comment.body.startswith(self.comment_tag):
119109
return comment
120110
return None
121111

0 commit comments

Comments
 (0)