Skip to content

Commit 69bbcd8

Browse files
removed not needed {} allocation
1 parent 49eb731 commit 69bbcd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_lambda/dsm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def set_dsm_context(event, event_source: _EventSource):
3838
context_json = None
3939
try:
4040
context_json = (
41-
extract_context_from_kinesis_record(record.get("kinesis", {}))
41+
extract_context_from_kinesis_record(record.get("kinesis"))
4242
if event_source.equals(EventTypes.KINESIS)
4343
else extract_context_from_sqs_or_sns_record(record)
4444
)

0 commit comments

Comments
 (0)