Skip to content

Commit

Permalink
refactor(printcfg.py): remove unnecessary whitespace in line.startswi…
Browse files Browse the repository at this point in the history
…th() call to improve code readability
  • Loading branch information
rootiest committed Jun 13, 2023
1 parent 587ee05 commit 79f16f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 79f16f4

Please sign in to comment.