Skip to content

Commit 8653d12

Browse files
endothermicdevcdecker
authored andcommitted
reckless: avoid redundant include statement in config
1 parent 3f2e923 commit 8653d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/reckless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class Config():
170170
conf_write.write(f'\n{l.strip()}')
171171
else:
172172
conf_write.write(l.strip())
173-
if addline == l:
173+
if addline.strip() == l.strip():
174174
# addline is idempotent
175175
line_exists = True
176176
if not line_exists:

0 commit comments

Comments
 (0)