Skip to content

Commit 621044d

Browse files
committed
Remove unnecessary condition on if block. There is no need to guard against a state where there is a transport layer, but it is not connected
1 parent 52fc2d5 commit 621044d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/workflows/services/common_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def start_transport(self):
195195

196196
# Configure OTELTracing if configuration is available
197197
otel_config = getattr(self.config, "_opentelemetry", None)
198-
if otel_config and self.transport.connect:
198+
if otel_config:
199199
# Configure OTELTracing
200200
resource = Resource.create(
201201
{

0 commit comments

Comments
 (0)