diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-29 09:48:30 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-29 09:48:30 +0000 |
commit | 23301726b08691c0f2706ad9d340da62a0902cc6 (patch) | |
tree | 1d6cfdb5ff8d99b2cc37a64c1764b3705b575aed /lib/net/smtp.rb | |
parent | 28cbfaba2b6e1a385f3e7331a0a223e8ecda2071 (diff) |
* lib/net/smtp.rb: unify coding style.
* lib/net/http.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r-- | lib/net/smtp.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 3991eb18b8..1f36f4ba12 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -488,12 +488,12 @@ module Net private def send0( from_addr, to_addrs ) - raise IOError, "closed session" unless @socket + raise IOError, 'closed session' unless @socket raise ArgumentError, 'mail destination does not given' if to_addrs.empty? raise SecurityError, 'tainted from_addr' if from_addr.tainted? - to_addrs.each{|to| + to_addrs.each do |to| raise SecurityError, 'tainted to_addr' if to.tainted? - } + end mailfrom from_addr to_addrs.each do |to| |