From ae57aa115e2ad9725284de0d3994f05fc83a587e Mon Sep 17 00:00:00 2001 From: Zach Leventer Date: Thu, 23 Apr 2026 22:12:33 -0400 Subject: [PATCH] Remove dead commented-out code in register_client Two commented-out lines after a `return` statement are unreachable and appear to be leftover from a refactor. --- src/mcp/client/auth/utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mcp/client/auth/utils.py b/src/mcp/client/auth/utils.py index d75324f2f..780a24e85 100644 --- a/src/mcp/client/auth/utils.py +++ b/src/mcp/client/auth/utils.py @@ -240,8 +240,6 @@ async def handle_registration_response(response: Response) -> OAuthClientInforma content = await response.aread() client_info = OAuthClientInformationFull.model_validate_json(content) return client_info - # self.context.client_info = client_info - # await self.context.storage.set_client_info(client_info) except ValidationError as e: # pragma: no cover raise OAuthRegistrationError(f"Invalid registration response: {e}")