mirror of https://gitlab.com/bashrc2/epicyon
Simplify
parent
ebfb234a3c
commit
fd9fd5e49e
3
git.py
3
git.py
|
@ -95,8 +95,7 @@ def gitAddFromHandle(patchStr: str, handle: str) -> str:
|
||||||
if fromStr in patchStr:
|
if fromStr in patchStr:
|
||||||
return patchStr
|
return patchStr
|
||||||
|
|
||||||
prevContentStr = patchStr
|
patchLines = patchStr.split('\n')
|
||||||
patchLines = prevContentStr.split('\n')
|
|
||||||
patchStr = ''
|
patchStr = ''
|
||||||
for line in patchLines:
|
for line in patchLines:
|
||||||
patchStr += line + '\n'
|
patchStr += line + '\n'
|
||||||
|
|
Loading…
Reference in New Issue