Skip to content

Commit 848f433

Browse files
segiddinsdeivid-rodriguez
authored andcommitted
Merge pull request #8640 from jeremyevans/avoid-splat-allocation
(cherry picked from commit 7294af6)
1 parent d775bc0 commit 848f433

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rubygems/commands/push_command.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def send_gem(name)
9292
private
9393

9494
def send_push_request(name, args)
95-
rubygems_api_request(*args, scope: get_push_scope) do |request|
95+
scope = get_push_scope
96+
rubygems_api_request(*args, scope: scope) do |request|
9697
body = Gem.read_binary name
9798
if options[:attestations].any?
9899
request.set_form([

0 commit comments

Comments
 (0)