forked from openlp/openlp
condition already checked above
This commit is contained in:
parent
11fe2045e5
commit
cc0b736ef6
@ -84,7 +84,7 @@ def songs_probably_equal(song_tupel):
|
||||
for element in diff_no_typos:
|
||||
if element[0] == "equal" and _op_length(element) > length_of_longest_equal_block:
|
||||
length_of_longest_equal_block = _op_length(element)
|
||||
if length_of_equal_blocks >= MIN_BLOCK_SIZE or length_of_longest_equal_block > len(small) * 2 // 3:
|
||||
if length_of_longest_equal_block > len(small) * 2 // 3:
|
||||
return song1, song2
|
||||
# Both checks failed. We assume the songs are not equal.
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user