aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkazu <kazu@ruby-lang.org>2017-10-21 14:40:03 +0000
committerKazuki Yamaguchi <k@rhe.jp>2017-10-22 04:04:06 +0900
commitd1018a1c5dd37c32b52aca485a2281b892f1d736 (patch)
treee94596cfa13f610ace604fde823ae8e1aff8a3aa /lib
parent5653599e150bd92d8631858fe6e0def1f9a3c33d (diff)
downloadruby-openssl-d1018a1c5dd37c32b52aca485a2281b892f1d736.tar.gz
Use caller with length to reduce unused strings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/openssl/ssl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb
index a628648e..fb143c94 100644
--- a/lib/openssl/ssl.rb
+++ b/lib/openssl/ssl.rb
@@ -201,7 +201,7 @@ YoaOffgTf5qxiwkjnlVZQc3whgnEt9FpVMvQ9eknyeGB5KHfayAc3+hUAvI3/Cr3
if /(?<type>_client|_server)\z/ =~ meth
meth = $`
if $VERBOSE
- warn "#{caller(1)[0]}: method type #{type.inspect} is ignored"
+ warn "#{caller(1, 1)[0]}: method type #{type.inspect} is ignored"
end
end
version = METHODS_MAP[meth.intern] or