mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-04 03:03:51 +01:00
reckless: avoid redundant include statement in config
This commit is contained in:
parent
3f2e923e81
commit
8653d1200f
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue