mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Apply Rubocop Performance/RedundantSplitRegexpArgument (#23443)
* Apply Rubocop Performance/RedundantSplitRegexpArgument * Update app/controllers/concerns/signature_verification.rb
This commit is contained in:
parent
ef8988aef2
commit
2e652aa81c
@ -227,7 +227,7 @@ module SignatureVerification
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_header_name(name)
|
def to_header_name(name)
|
||||||
name.split(/-/).map(&:capitalize).join('-')
|
name.split('-').map(&:capitalize).join('-')
|
||||||
end
|
end
|
||||||
|
|
||||||
def missing_required_signature_parameters?
|
def missing_required_signature_parameters?
|
||||||
|
Loading…
Reference in New Issue
Block a user