The changes module no longer generates file diffs with 0 insertions/deletions.
Under certain conditions this could previously cause a division by zero in the timeline.TimelineData.get_multiplier() method.
This commit is contained in:
parent
2d3e8e673c
commit
4b1267ba39
|
@ -35,7 +35,7 @@ class FileDiff:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def is_filediff_line(string):
|
def is_filediff_line(string):
|
||||||
string = string.split("|")
|
string = string.split("|")
|
||||||
return string.__len__() == 2 and string[1].find("Bin") == -1
|
return string.__len__() == 2 and string[1].find("Bin") == -1 and ('+' in string[1] or '-' in string[1])
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_extension(string):
|
def get_extension(string):
|
||||||
|
|
Loading…
Reference in New Issue