From 21f6eec3e487aed58fcdfe997eef2a3ebd0962b0 Mon Sep 17 00:00:00 2001 From: fdai7763 Date: Tue, 23 Jan 2024 23:49:37 +0100 Subject: [PATCH] refactoring: simplified by removing unnecessary variable --- src/main/py/read_math_function.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index f3c741b..27fcb9f 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -53,8 +53,7 @@ def simplify_easy_math_function(type, function): if is_string(function) is False or is_allowed_string("c", function) is True: return simplify_constant("c", function) extracted_function = extract_constant(function) - simplified_constant = simplify_constant("c", extracted_function[0]) - extracted_function[0] = simplified_constant + extracted_function[0] = simplify_constant("c", extracted_function[0]) return extracted_function