refactor: Update ConditionalRouterComponent to return Message object instead of empty string
This commit is contained in:
parent
ae12c7a2d0
commit
4a7aee44e0
1 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ class ConditionalRouterComponent(Component):
|
|||
return response
|
||||
else:
|
||||
self.stop("true_result")
|
||||
return ""
|
||||
return Message()
|
||||
|
||||
def false_response(self) -> Message:
|
||||
result = self.evaluate_condition(self.input_text, self.match_text, self.operator, self.case_sensitive)
|
||||
|
|
@ -83,4 +83,4 @@ class ConditionalRouterComponent(Component):
|
|||
return response
|
||||
else:
|
||||
self.stop("false_result")
|
||||
return ""
|
||||
return Message()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue