ruff: enable PLR rules and fix bug in my.github.gdpr._is_bot
This commit is contained in:
parent
b594377a59
commit
d0df8e8f2d
2 changed files with 17 additions and 1 deletions
|
@ -145,7 +145,7 @@ def _parse_repository(d: Dict) -> Event:
|
|||
def _is_bot(user: Optional[str]) -> bool:
|
||||
if user is None:
|
||||
return False
|
||||
return "[bot]" in "user"
|
||||
return "[bot]" in user
|
||||
|
||||
|
||||
def _parse_issue_comment(d: Dict) -> Event:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue