From 4809d7b15dffec2476a26d3263c94c073d04310c Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 13:18:29 +0100 Subject: [PATCH] refactoring: simplified return statement for difference_of_simplified_exponential_functions --- 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 6886de1..1d250a8 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -129,7 +129,6 @@ def difference_of_simplified_exponential_functions(type, function): new_minuend = simplify_exponential_function('e', minuend) new_subtrahend = simplify_exponential_function('e', subtrahend) if new_minuend != "Der Ausdruck muss die Variable 'x' enthalten." and new_subtrahend != "Der Ausdruck muss die Variable 'x' enthalten.": - simplified = new_minuend - new_subtrahend - return simplified + return new_minuend - new_subtrahend else: return "Der Ausdruck muss die Variable 'x' enthalten." \ No newline at end of file