Skip to content

Commit ad437ee

Browse files
committed
remove unnecessary check
1 parent 1e9b241 commit ad437ee

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

temporalio/client/_impl.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,6 @@ async def describe_activity(
693693
metadata=input.rpc_metadata,
694694
timeout=input.rpc_timeout,
695695
)
696-
activity_type = (
697-
resp.info.activity_type.name if resp.info.HasField("activity_type") else ""
698-
)
699696
return await ActivityExecutionDescription._from_execution_info(
700697
info=resp.info,
701698
long_poll_token=resp.long_poll_token or None,
@@ -705,7 +702,7 @@ async def describe_activity(
705702
namespace=self._client.namespace,
706703
activity_id=resp.info.activity_id,
707704
activity_task_queue=resp.info.task_queue,
708-
activity_type=activity_type,
705+
activity_type=resp.info.activity_type.name,
709706
workflow_id=None,
710707
workflow_type=None,
711708
is_local=False,

0 commit comments

Comments
 (0)