Skip to content

Commit 8d0f297

Browse files
committed
fix: Remove dead return None in _assemble_workspace_bubble when bubble_id isn’t a str.
1 parent a4ab1af commit 8d0f297

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tests/test_blob_parsing_fuzz.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,7 @@ def _assemble_workspace_bubble(bubble_id: object, value: object) -> dict | None:
155155
except (json.JSONDecodeError, TypeError, ValueError, UnicodeDecodeError):
156156
return None
157157
try:
158-
if not isinstance(bubble_id, str):
159-
Bubble.from_dict(parsed, bubble_id=bubble_id) # type: ignore[arg-type]
160-
return None
161-
return Bubble.from_dict(parsed, bubble_id=bubble_id).raw
158+
return Bubble.from_dict(parsed, bubble_id=bubble_id).raw # type: ignore[arg-type]
162159
except SchemaError:
163160
return None
164161

0 commit comments

Comments
 (0)