aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/smtp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r--lib/net/smtp.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index ac8ddc5bf2..359a0f9710 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -592,10 +592,8 @@ module Net
end
def new_internet_message_io(s)
- io = InternetMessageIO.new(s)
- io.read_timeout = @read_timeout
- io.debug_output = @debug_output
- io
+ InternetMessageIO.new(s, read_timeout: @read_timeout,
+ debug_output: @debug_output)
end
def do_helo(helo_domain)