Skip to content

Use Array#intersection.any? for Ruby 3.0.x

Malcolm Locke requested to merge mallocke/ruby-3-0-array-intersect into master

What does this MR do and why?

Use Array#intersection.any? for Ruby 3.0.x

Array#intersect? was introduced in Ruby 3.1, but we still support 3.0 so we can't use it yet.

This is causing the ruby3_0 scheduled pipelines to fail.

image

Edited by Malcolm Locke

Merge request reports