condition already checked above

This commit is contained in:
Andreas Preikschat 2014-03-22 20:35:24 +01:00
parent 11fe2045e5
commit cc0b736ef6
1 changed files with 1 additions and 1 deletions

View File

@ -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