minor code fix: remove duplicate type check branch (#22536)

This commit is contained in:
NeatGuyCoding 2025-07-17 13:20:31 +08:00 committed by GitHub
commit c3037c5491
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 4 deletions

View file

@ -91,8 +91,6 @@ class SegmentType(StrEnum):
return SegmentType.OBJECT
elif isinstance(value, File):
return SegmentType.FILE
elif isinstance(value, str):
return SegmentType.STRING
else:
return None