minor code fix: remove duplicate type check branch (#22536)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -152,7 +152,6 @@ class VariablePool(BaseModel):
|
||||
self.variable_dictionary[selector[0]] = {}
|
||||
return
|
||||
key, hash_key = self._selector_to_keys(selector)
|
||||
hash_key = hash(tuple(selector[1:]))
|
||||
self.variable_dictionary[key].pop(hash_key, None)
|
||||
|
||||
def convert_template(self, template: str, /):
|
||||
|
||||
Reference in New Issue
Block a user