lib/kumogata/client.rb in kumogata-0.2.15 vs lib/kumogata/client.rb in kumogata-0.2.16
- old
+ new
@@ -341,10 +341,10 @@
add_parameters(opts)
return opts
end
def add_parameters(hash)
- if @options.parameters?
+ if @options.parameters? and not @options.parameters.empty?
parameters = {}
@options.parameters.each do |key, value|
parameters[key] = value
end