Commit d3893e65 authored by Patrick Bajao's avatar Patrick Bajao

Fix Ruby 2.7 warnings for MergeabilityCheckService

In Ruby 3.0, positional arguments and keyword arguments will be
separated. In Ruby 2.7, deprecation warnings related to keyword
arguments show up.

Explicitly specify passing keyword arguments instead of a Hash
object by using double splat operator.
parent 0583126b
......@@ -88,7 +88,7 @@ module MergeRequests
sleep_sec: retry_lease ? 1.second : 0
}
in_lock(lease_key, lease_opts, &block)
in_lock(lease_key, **lease_opts, &block)
end
def payload
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment