mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge pull request #2662 from andrew/patch-1
Remove nil qparams to avoid extra & in url generation
This commit is contained in:
commit
c0b15eb107
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ module Sidekiq
|
|||
options = options.stringify_keys
|
||||
params.merge(options).map do |key, value|
|
||||
SAFE_QPARAMS.include?(key) ? "#{key}=#{value}" : next
|
||||
end.join("&")
|
||||
end.compact.join("&")
|
||||
end
|
||||
|
||||
def truncate(text, truncate_after_chars = 2000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue