summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/http.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 12:52:08 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 12:52:08 +0000
commitb4340b00e2c7a6e85448787d4dee41d7202859f2 (patch)
treedb469a840e4c8bb2ef4f896a67eb62a8459e5dc4 /lib/custodian/protocoltest/http.rb
parent664ff3648246f38a4c49adc32e1ce0887dcbfe37 (diff)
Avoid redundent ".to_s" methods.
These are not required if the argument is string already, or has a _to_s method which will be automatically invoked by magic.
Diffstat (limited to 'lib/custodian/protocoltest/http.rb')
-rw-r--r--lib/custodian/protocoltest/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb
index cc171a6..0d20dfb 100644
--- a/lib/custodian/protocoltest/http.rb
+++ b/lib/custodian/protocoltest/http.rb
@@ -297,7 +297,7 @@ module Custodian
# Nothing to see here..!
resolution_errors << resolve_mode
rescue => x
- errors << "#{protocol_msg}: #{x.class.to_s}: #{x.message}\n #{x.backtrace.join("\n ")}."
+ errors << "#{protocol_msg}: #{x.class}: #{x.message}\n #{x.backtrace.join("\n ")}."
end
#