Skip to content

Commit ef658ff

Browse files
committed
fix
1 parent 8affcb3 commit ef658ff

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/a2a/client/base_client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ async def _intercept_before(
507507
self,
508508
args: UnionBeforeArgs,
509509
) -> dict[str, Any] | None:
510-
if not self._interceptors or len(self._interceptors) == 0:
510+
if not self._interceptors:
511511
return None
512512
executed: list[ClientCallInterceptor] = []
513513
for interceptor in self._interceptors:
@@ -528,8 +528,6 @@ async def _intercept_after(
528528
interceptors_to_use = (
529529
interceptors if interceptors is not None else self._interceptors
530530
)
531-
if not interceptors_to_use:
532-
interceptors_to_use = []
533531

534532
reversed_interceptors = list(reversed(interceptors_to_use))
535533
for interceptor in reversed_interceptors:

0 commit comments

Comments
 (0)