reckless: avoid redundant include statement in config

This commit is contained in:
Alex Myers 2022-12-05 12:16:40 -06:00 committed by Christian Decker
parent 3f2e923e81
commit 8653d1200f
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ class Config():
conf_write.write(f'\n{l.strip()}')
else:
conf_write.write(l.strip())
if addline == l:
if addline.strip() == l.strip():
# addline is idempotent
line_exists = True
if not line_exists: