From 302baeb2164c7edf24952bd662638db7bb60148f Mon Sep 17 00:00:00 2001 From: didier Date: Sun, 7 Mar 2021 11:59:09 +0000 Subject: [PATCH] Remove unnecessary else after return --- gamestonk_terminal/helper_funcs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gamestonk_terminal/helper_funcs.py b/gamestonk_terminal/helper_funcs.py index bb9bec2c71f..d1167c838b5 100644 --- a/gamestonk_terminal/helper_funcs.py +++ b/gamestonk_terminal/helper_funcs.py @@ -293,8 +293,7 @@ def print_pretty_prediction(df_pred: pd.DataFrame, last_price: float): def check_ohlc(type_ohlc: str) -> str: if bool(re.match("^[ohlca]+$", type_ohlc)): return type_ohlc - else: - raise argparse.ArgumentTypeError("The type specified is not recognized") + raise argparse.ArgumentTypeError("The type specified is not recognized") def lett_to_num(word: str) -> str: