Browse Source

refactoring: simplified by removing unnecessary variable

remotes/origin/feature/feature-read-math-functions
fdai7763 11 months ago
parent
commit
21f6eec3e4
  1. 3
      src/main/py/read_math_function.py

3
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

Loading…
Cancel
Save