From a351a7c73110448ca5c6f6a09c68bfa986a07e50 Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Mon, 1 Aug 2022 11:48:16 -0400 Subject: [PATCH] [O] Optimize if else --- hyfetch/neofetch_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyfetch/neofetch_util.py b/hyfetch/neofetch_util.py index bfc6be0a..809aca63 100644 --- a/hyfetch/neofetch_util.py +++ b/hyfetch/neofetch_util.py @@ -178,7 +178,7 @@ def run_neofetch(preset: ColorProfile, alignment: ColorAlignment): if platform.system() != 'Windows': os.system(f'{get_command_path()} --ascii --source {path.absolute()} --ascii-colors') - if platform.system() == 'Windows': + else: cmd = get_command_path().replace("\\", "/").replace("C:/", "/c/") path_str = str(path.absolute()).replace('\\', '/').replace('C:/', '/c/')