From 4c25f9e1e04ccd00b10a73b106728c26bd3af329 Mon Sep 17 00:00:00 2001 From: fdai7763 Date: Tue, 23 Jan 2024 21:04:30 +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 b51bb8a..0b2cdd9 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -3,8 +3,7 @@ def read_constant(type, value): return False if is_string(value): if is_allowed_string(type, value): - constant = calculate_string(value) - return constant + return calculate_string(value) return value