about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-08 04:36:23 -0500
committerGitHub <noreply@github.com>2023-02-08 10:36:23 +0100
commit0d1f192c54ab65a4a1c938553e5d87be65a966e8 (patch)
tree08d2241a883349ae36b3613029c88acd6b7e4434 /app/lib
parent26ac2447b4efc4689295188c5d1cd3d444f28b15 (diff)
Apply Rubocop Performance/BlockGivenWithExplicitBlock (#23441)
* Apply Rubocop Performance/BlockGivenWithExplicitBlock

* Unprefix used block parameter
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/extractor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/extractor.rb b/app/lib/extractor.rb
index aea60dae5..ead4cdddd 100644
--- a/app/lib/extractor.rb
+++ b/app/lib/extractor.rb
@@ -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