passing nil to split is not necessary
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0a2392a50a
commit
d236a0ca3b
@ -1004,7 +1004,7 @@ module Net
|
|||||||
return {} unless @string[3, 1] == '-'
|
return {} unless @string[3, 1] == '-'
|
||||||
h = {}
|
h = {}
|
||||||
@string.lines.drop(1).each do |line|
|
@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
|
h[k] = v
|
||||||
end
|
end
|
||||||
h
|
h
|
||||||
|
Loading…
x
Reference in New Issue
Block a user