From 79f16f4f4a4662e7c98e4b479652ce1c95c28372 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 12 Jun 2023 23:50:40 -0400 Subject: [PATCH] refactor(printcfg.py): remove unnecessary whitespace in line.startswith() call to improve code readability --- src/printcfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printcfg.py b/src/printcfg.py index 5e975b4..69343c2 100755 --- a/src/printcfg.py +++ b/src/printcfg.py @@ -81,7 +81,7 @@ def find_profile(path): # Find the profile name (Eg: '# Profile: default' = 'default') with open(path, "r", encoding="utf-8") as file: for line in file: - if line.startswith("# Profile: "): + if line.startswith("# Profile:"): logger.debug("Found profile name: {}".format(line[11:].strip())) # Return the profile name return line[11:].strip()