mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-04 00:02:03 -04:00
Fixes Rubocop Style/ModuleFunction
This commit is contained in:
parent
f3e9adba3b
commit
2a04aeadb3
@ -117,14 +117,6 @@ Style/MissingRespondToMissing:
|
||||
Exclude:
|
||||
- 'lib/faraday.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, Autocorrect.
|
||||
# SupportedStyles: module_function, extend_self
|
||||
Style/ModuleFunction:
|
||||
Exclude:
|
||||
- 'lib/faraday/utils.rb'
|
||||
|
||||
# Offense count: 1
|
||||
Style/MultipleComparison:
|
||||
Exclude:
|
||||
|
@ -5,7 +5,7 @@ require 'faraday/utils/params_hash'
|
||||
|
||||
module Faraday
|
||||
module Utils
|
||||
extend self
|
||||
module_function
|
||||
|
||||
def build_query(params)
|
||||
FlatParamsEncoder.encode(params)
|
||||
@ -100,8 +100,6 @@ module Faraday
|
||||
deep_merge!(source.dup, hash)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def sort_query_params(query)
|
||||
query.split('&').sort.join('&')
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user