Skip to content

Commit

Permalink
Fix Style/SuperWithArgsParentheses cop (mastodon#28174)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored and vmstan committed Jan 5, 2024
1 parent 5aa842c commit 6efcbdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/signed_request_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -16,6 +16,6 @@ def get(path, headers: nil, sign_with: nil, **args)

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

0 comments on commit 6efcbdb

Please sign in to comment.