Don't merge comments if new comment is empty.
This commit is contained in:
parent
9fe934240a
commit
b8aa11e5ce
|
@ -286,8 +286,8 @@ def merge_comments(oldcomment:str, newcomment:str) -> str:
|
|||
if oldcomment in ['', None] and newcomment in ['', None]:
|
||||
return ''
|
||||
|
||||
# If both comments are the same, don't merge
|
||||
if oldcomment == newcomment:
|
||||
# If both comments are the same, or new comment is empty, don't merge
|
||||
if oldcomment == newcomment or newcomment in ['', None]:
|
||||
return oldcomment
|
||||
|
||||
# We want to skip duplicate fragments so we don't end up
|
||||
|
|
Loading…
Reference in New Issue