From cc0b736ef627ea1c18594d5c588b22abbb1ec8cc Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sat, 22 Mar 2014 20:35:24 +0100 Subject: [PATCH] condition already checked above --- openlp/plugins/songs/lib/songcompare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/songs/lib/songcompare.py b/openlp/plugins/songs/lib/songcompare.py index 399672fbe..512ad2ad5 100644 --- a/openlp/plugins/songs/lib/songcompare.py +++ b/openlp/plugins/songs/lib/songcompare.py @@ -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