From d236a0ca3bf63e2c5164310a4c849beabb64f3c8 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Wed, 22 Dec 2010 23:18:05 +0000 Subject: passing nil to split is not necessary git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/smtp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/net/smtp.rb') diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index c066bacbe4..1d3cfa2fee 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -1004,7 +1004,7 @@ module Net return {} unless @string[3, 1] == '-' h = {} @string.lines.drop(1).each do |line| - k, *v = line[4..-1].chomp.split(nil) + k, *v = line[4..-1].chomp.split h[k] = v end h -- cgit v1.2.3