From a221664ee17192b0c7db12d4be279d21532a10a0 Mon Sep 17 00:00:00 2001 From: dj4t9n Date: Sun, 23 May 2021 15:47:10 +0530 Subject: [PATCH] Removed some redundant statements --- bpytop.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bpytop.py b/bpytop.py index 2ebf9fa..823813a 100755 --- a/bpytop.py +++ b/bpytop.py @@ -244,8 +244,7 @@ log_level=$log_level CONFIG_DIR: str = f'{os.path.expanduser("~")}/.config/bpytop' if not os.path.isdir(CONFIG_DIR): try: - os.makedirs(CONFIG_DIR) - os.mkdir(f'{CONFIG_DIR}/themes') + os.makedirs(f'{CONFIG_DIR}/themes') except PermissionError: print(f'ERROR!\nNo permission to write to "{CONFIG_DIR}" directory!') raise SystemExit(1) @@ -5630,7 +5629,7 @@ def main(): #? Main loop -------------------------------------------------------------------------------------> def run(): - while not False: + while True: Term.refresh() Timer.stamp()