Fix Style/SuperWithArgsParentheses cop (#28174)

This commit is contained in:
Matt Jankowski 2023-12-01 10:53:15 -05:00 committed by GitHub
parent d83d01eb1e
commit aa8563d43d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
module SignedRequestHelpers
def get(path, headers: nil, sign_with: nil, **args)
return super path, headers: headers, **args if sign_with.nil?
return super(path, headers: headers, **args) if sign_with.nil?
headers ||= {}
headers['Date'] = Time.now.utc.httpdate
@ -16,6 +16,6 @@ module SignedRequestHelpers
headers['Signature'] = "keyId=\"#{key_id}\",algorithm=\"rsa-sha256\",headers=\"#{signed_headers.keys.join(' ').downcase}\",signature=\"#{signature}\""
super path, headers: headers, **args
super(path, headers: headers, **args)
end
end