...
This commit is contained in:
parent
c4c62c1505
commit
402fac3edf
@ -200,7 +200,7 @@ def parse_patch(raw: str) -> Patch:
|
|||||||
else:
|
else:
|
||||||
if current_hunk is None:
|
if current_hunk is None:
|
||||||
continue
|
continue
|
||||||
q = line[0]
|
q = line[0] if line else ''
|
||||||
if q == '+':
|
if q == '+':
|
||||||
current_hunk.add_line()
|
current_hunk.add_line()
|
||||||
elif q == '-':
|
elif q == '-':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user