Apply Rubocop Performance/BlockGivenWithExplicitBlock (#23441)
* Apply Rubocop Performance/BlockGivenWithExplicitBlock * Unprefix used block parameter
This commit is contained in:
parent
26ac2447b4
commit
0d1f192c54
4 changed files with 6 additions and 6 deletions
|
@ -18,7 +18,7 @@ module Extractor
|
|||
return [] if entities.empty?
|
||||
|
||||
entities = remove_overlapping_entities(entities)
|
||||
entities.each(&block) if block_given?
|
||||
entities.each(&block) if block
|
||||
entities
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue