We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e90fbb5 commit ac6b3c1Copy full SHA for ac6b3c1
.rubocop.yml
@@ -4,6 +4,9 @@ inherit_gem:
4
Style/ClassMethodsDefinitions:
5
Enabled: false
6
7
+Style/ArrayIntersect:
8
+ Enabled: false
9
+
10
AllCops:
11
Exclude:
12
- 'vendor/**/*'
lib/erb_lint/utils/block_map.rb
@@ -214,7 +214,7 @@ def find_overlapping_pair
214
@connections.each do |first|
215
@connections.each do |second|
216
next if first == second
217
- return [first, second] if first.intersect?(second)
+ return [first, second] if (first & second).any?
218
end
219
220
nil
0 commit comments