Skip to content

Commit 5d01d49

Browse files
Altruistusclaude
andcommitted
CM-74352: Simplify
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 4b73878 commit 5d01d49

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎cycode/cli/apps/ai_guardrails/scan/mcp_server_status.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def _normalize_alias(alias: str) -> str:
6060

6161
def is_enforced(status: Optional[McpServerAuthorizationStatus], treat_unreviewed: bool) -> bool:
6262
"""``status`` is None when the platform never saw the server."""
63-
if status == McpServerAuthorizationStatus.UNAUTHORIZED:
64-
return True
65-
return treat_unreviewed and status != McpServerAuthorizationStatus.AUTHORIZED
63+
if treat_unreviewed:
64+
return status != McpServerAuthorizationStatus.AUTHORIZED
65+
return status == McpServerAuthorizationStatus.UNAUTHORIZED
6666

6767

6868
class McpServerMatch(NamedTuple):

0 commit comments

Comments
 (0)