Skip to content

Commit 743e501

Browse files
committed
fixup
1 parent 5bf9036 commit 743e501

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

coverage_comment/github.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,7 @@ def _is_too_large_error(exc: github_client.ApiError) -> bool:
340340
"""
341341
try:
342342
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-
)
343+
errors: list[dict[str, Any]] = error_data.get("errors", [])
344+
return any(error.get("code") == "too_large" for error in errors)
348345
except (json.JSONDecodeError, TypeError):
349346
return False

0 commit comments

Comments
 (0)