We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bf9036 commit 743e501Copy full SHA for 743e501
coverage_comment/github.py
@@ -340,10 +340,7 @@ def _is_too_large_error(exc: github_client.ApiError) -> bool:
340
"""
341
try:
342
error_data: dict[str, Any] = json.loads(str(exc))
343
- errors: list[Any] = error_data.get("errors", [])
344
- return any(
345
- isinstance(error, dict) and error.get("code") == "too_large"
346
- for error in errors
347
- )
+ errors: list[dict[str, Any]] = error_data.get("errors", [])
+ return any(error.get("code") == "too_large" for error in errors)
348
except (json.JSONDecodeError, TypeError):
349
return False
0 commit comments