mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 05:37:20 +08:00
chore(lint): Apply comprehensive linting and formatting fixes (#10287)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -10,8 +10,7 @@ _SESSION_API_KEY_HEADER = APIKeyHeader(name='X-Session-API-Key', auto_error=Fals
|
||||
def check_session_api_key(
|
||||
session_api_key: str | None = Depends(_SESSION_API_KEY_HEADER),
|
||||
):
|
||||
"""
|
||||
Check the session API key and throw an exception if incorrect. Having this as a dependency
|
||||
"""Check the session API key and throw an exception if incorrect. Having this as a dependency
|
||||
means it appears in OpenAPI Docs
|
||||
"""
|
||||
if session_api_key != _SESSION_API_KEY:
|
||||
|
||||
Reference in New Issue
Block a user