mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-05 22:24:25 +01:00
reckless: avoid redundant include statement in config
This commit is contained in:
committed by
Christian Decker
parent
3f2e923e81
commit
8653d1200f
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user