Skip to content

Commit 800dc59

Browse files
committed
remove verbose unnecessary logic
1 parent 4814318 commit 800dc59

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/boilerpipe/filters/block_proximity_fusion.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ def process(doc)
1818
text_blocks = doc.text_blocks
1919
return false if text_blocks.size < 2
2020

21-
prev_block = if @content_only
22-
text_blocks.find { |tb| tb.is_content? }
23-
else
24-
text_blocks.first
25-
end
26-
21+
prev_block = text_blocks.first
2722
return false if prev_block.nil?
2823

2924
offset = text_blocks.index(prev_block) + 1

0 commit comments

Comments
 (0)