Skip to content

Commit

Permalink
Pre-silence Pyre Errors for upcoming upgrade] [batch:242/596] [shard:…
Browse files Browse the repository at this point in the history
…2/N]

Reviewed By: MaggieMoss

Differential Revision: D65223711

fbshipit-source-id: 79efb496e6156fd632de1a5589fa14dee7047520
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Oct 31, 2024
1 parent d8b0b4f commit b82b1a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CodeShield/codeshield.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ async def scan_code(
except Exception as e:
LOG.error(f"Exception while scanning for code security: {e}")
return result
# pyre-fixme[6]: For 1st argument expected
# `pyre_extensions.PyreReadOnly[Sized]` but got `Optional[List[Any]]`.
if len(issues) > 0:
result.is_insecure = True
result.issues_found = issues
Expand Down

0 comments on commit b82b1a0

Please sign in to comment.