refac & cleanup

This commit is contained in:
Taylor Wilsdon
2025-06-04 18:48:17 -04:00
parent a5c294b166
commit 62a1adaf9e
5 changed files with 28 additions and 28 deletions

View File

@@ -44,7 +44,7 @@ async def search_docs(
required_scopes=[DRIVE_READONLY_SCOPE],
)
if isinstance(auth_result, types.CallToolResult):
return auth_result # Auth error
return auth_result
service, user_email = auth_result
try:
@@ -226,7 +226,7 @@ async def list_docs_in_folder(
required_scopes=[DRIVE_READONLY_SCOPE],
)
if isinstance(auth_result, types.CallToolResult):
return auth_result # Auth error
return auth_result
drive_service, user_email = auth_result # user_email will be consistent
try: