Skip to content

Commit

Permalink
Remove nil qparams to avoid extra & in url generation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Nov 15, 2015
1 parent 078b2fa commit 7077dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/web_helpers.rb
Expand Up @@ -160,7 +160,7 @@ def qparams(options)
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)
Expand Down

0 comments on commit 7077dbd

Please sign in to comment.