From c5644d913d9e09d5c576e5832c619dc52c839b5f Mon Sep 17 00:00:00 2001 From: didier Date: Sat, 13 Mar 2021 00:52:23 +0000 Subject: [PATCH] fix pylint --- gamestonk_terminal/helper_funcs.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gamestonk_terminal/helper_funcs.py b/gamestonk_terminal/helper_funcs.py index 7f9da204b92..ed8e29ebd3b 100644 --- a/gamestonk_terminal/helper_funcs.py +++ b/gamestonk_terminal/helper_funcs.py @@ -314,13 +314,11 @@ def financials_colored_values(val: str) -> str: if sum(c.isalpha() for c in val) < 2: if "%" in val: if "-" in val: - color = Fore.RED + return f"{Fore.RED}{val}{Style.RESET_ALL}" else: - color = Fore.GREEN - return f"{color}{val}{Style.RESET_ALL}" + return f"{Fore.GREEN}{val}{Style.RESET_ALL}" elif "(" in val: - color = Fore.RED - return f"{color}{val}{Style.RESET_ALL}" + return f"{Fore.RED}{val}{Style.RESET_ALL}" else: return val else: