From 05caf1b29da517f188704337d5ec9fa452c242b0 Mon Sep 17 00:00:00 2001 From: jckand-amzn Date: Mon, 15 Nov 2021 17:50:42 -0600 Subject: [PATCH] Removed redundant append to components list from add_component() Signed-off-by: jckand-amzn --- .../editor_python_test_tools/editor_entity_utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/AutomatedTesting/Gem/PythonTests/EditorPythonTestTools/editor_python_test_tools/editor_entity_utils.py b/AutomatedTesting/Gem/PythonTests/EditorPythonTestTools/editor_python_test_tools/editor_entity_utils.py index aee8846afe..59e454479c 100644 --- a/AutomatedTesting/Gem/PythonTests/EditorPythonTestTools/editor_python_test_tools/editor_entity_utils.py +++ b/AutomatedTesting/Gem/PythonTests/EditorPythonTestTools/editor_python_test_tools/editor_entity_utils.py @@ -259,7 +259,6 @@ class EditorEntity: :return: Component object of newly added component. """ component = self.add_components([component_name])[0] - self.components.append(component) return component def add_components(self, component_names: list) -> List[EditorComponent]: