Permalink
Browse files

better Options inspect message

  • Loading branch information...
1 parent c482e11 commit aa8b4207394b6e1fe338556e87b0ed9edc85fd67 @technoweenie committed Dec 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/faraday/options.rb
@@ -81,7 +81,7 @@ def inspect
value = send(m)
values << "#{m}=#{value.inspect}" if value
end
- values = values.empty? ? nil : (' ' << values.join(", "))
+ values = values.empty? ? ' (empty)' : (' ' << values.join(", "))
%(#<#{self.class}#{values}>)
end

0 comments on commit aa8b420

Please sign in to comment.