Skip to content

Commit e5451e5

Browse files
chore: flip conditionals
1 parent 79047da commit e5451e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_lambda/span_pointers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _extract_table_name_from_dynamodb_stream_record(record) -> str:
152152
raise ValueError(f"unexpected eventSourceARN format: {event_source_arn}")
153153

154154
[_table, table_name, _stream, _timestamp] = dynamodb_info.split("/")
155-
if not _table == "table" or not _stream == "stream":
155+
if _table != "table" or _stream != "stream":
156156
raise ValueError(f"unexpected eventSourceARN format: {event_source_arn}")
157157

158158
return table_name

0 commit comments

Comments
 (0)