From aa022f9b8b41695bab3b399ea90a14a4ccaef08f Mon Sep 17 00:00:00 2001 From: fdai7763 Date: Tue, 23 Jan 2024 20:30:36 +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 370b39b..6266de5 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -10,5 +10,4 @@ def is_string(value): def is_allowed_string(type, value): allowed = "+-*/()^" - result = all(character.isdigit() or character in allowed for character in value) - return result \ No newline at end of file + return all(character.isdigit() or character in allowed for character in value) \ No newline at end of file