Skip to content

Commit cfbb1f8

Browse files
move if statement with least work first
1 parent 8b0313b commit cfbb1f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datadog_lambda/tracing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@
6969

7070

7171
def _dsm_set_checkpoint(context_json, event_type, arn):
72-
if not isinstance(context_json, dict):
72+
if not config.data_streams_enabled:
7373
return
7474

75-
if context_json and PROPAGATION_KEY_BASE_64 not in context_json:
75+
if not isinstance(context_json, dict):
7676
return
7777

78-
if not config.data_streams_enabled:
78+
if context_json and PROPAGATION_KEY_BASE_64 not in context_json:
7979
return
8080

8181
try:

0 commit comments

Comments
 (0)