Agent Zero AI framework
refactor(plugins): Remove unused global toggles variable from get_toggle_state
frdelbcbce781b834
diff --git a/helpers/plugins.py b/helpers/plugins.pyindex fe67e6fe6..26a47e736 100644--- a/helpers/plugins.py+++ b/helpers/plugins.py@@ -298,17 +298,6 @@ def get_toggle_state(plugin_name: str) -> ToggleState:else "disabled")- # global toggles- usr_toggles = [- files.find_existing_paths_by_pattern(- files.get_abs_path(files.PLUGINS_DIR, plugin_name, TOGGLE_FILE_PATTERN)- ),- files.find_existing_paths_by_pattern(- files.get_abs_path(- files.USER_DIR, files.PLUGINS_DIR, plugin_name, TOGGLE_FILE_PATTERN- )- ),- ]# additional toggles in project/agent directories, return advancedif meta.per_agent_config or meta.per_project_config: