mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix errors detected by Ruff (#3918)
### What problem does this PR solve? Fix errors detected by Ruff ### Type of change - [x] Refactoring
This commit is contained in:
@ -330,7 +330,7 @@ def user_info_from_github(access_token):
|
||||
headers=headers,
|
||||
).json()
|
||||
user_info["email"] = next(
|
||||
(email for email in email_info if email["primary"] == True), None
|
||||
(email for email in email_info if email["primary"]), None
|
||||
)["email"]
|
||||
return user_info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user