Skip to content

Commit be1f8d2

Browse files
committed
remove extra check
1 parent d0e102a commit be1f8d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ def _capture_telemetry(
12141214
# Spans can't be dropped in before_send_span by design. They can
12151215
# be altered though (e.g. to sanitize). Only allow changes to
12161216
# name and attributes.
1217-
if isinstance(serialized, dict) and serialized and "name" in serialized:
1217+
if isinstance(serialized, dict) and "name" in serialized:
12181218
telemetry.name = serialized["name"] # type: ignore[typeddict-item]
12191219
telemetry._attributes = {}
12201220
for k, v in (serialized.get("attributes") or {}).items():

0 commit comments

Comments
 (0)