Skip to content

Commit

Permalink
move onto one line
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy authored Dec 17, 2024
1 parent 49df66a commit 292e888
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions reusable_workflows/check_cla/check_cla_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ def __init__(self, gh: github3.login) -> None:
def check_if_comment_already_exists(
search_comment: str, comments: github3.structs.GitHubIterator
) -> bool:
for comment in comments:
if search_comment == comment.body:
return True
return False
return any(search_comment == comment.body for comment in comments)

def leave_failed_comment_on_issue(self, issue: GHIssue) -> None:
# check if bot has already left a message to avoid spam
Expand Down

0 comments on commit 292e888

Please # to comment.