mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-01 07:13:00 +00:00
Fix lint: use underscore for unused condition_type variable
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -1089,7 +1089,7 @@ class Flow(Generic[T], metaclass=FlowMeta):
|
|||||||
for method_name in self._start_methods:
|
for method_name in self._start_methods:
|
||||||
# Check if this start method is triggered by the current trigger
|
# Check if this start method is triggered by the current trigger
|
||||||
if method_name in self._listeners:
|
if method_name in self._listeners:
|
||||||
condition_type, trigger_methods = self._listeners[
|
_, trigger_methods = self._listeners[
|
||||||
method_name
|
method_name
|
||||||
]
|
]
|
||||||
if current_trigger in trigger_methods:
|
if current_trigger in trigger_methods:
|
||||||
@@ -1148,7 +1148,7 @@ class Flow(Generic[T], metaclass=FlowMeta):
|
|||||||
if listener_name in self._triggered_or_listeners:
|
if listener_name in self._triggered_or_listeners:
|
||||||
# Skip this listener as it has already been triggered by another method in the OR condition
|
# Skip this listener as it has already been triggered by another method in the OR condition
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# If the trigger_method matches any in methods, run this
|
# If the trigger_method matches any in methods, run this
|
||||||
if trigger_method in methods:
|
if trigger_method in methods:
|
||||||
triggered.append(listener_name)
|
triggered.append(listener_name)
|
||||||
|
|||||||
Reference in New Issue
Block a user