summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/ftp.rb2
-rw-r--r--lib/net/http.rb2
-rw-r--r--lib/net/imap.rb1
3 files changed, 2 insertions, 3 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index f393a15bff..4ed2517018 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -322,7 +322,7 @@ module Net
sock = TCPServer.open(@sock.addr[3], 0)
port = sock.addr[1]
host = sock.addr[3]
- resp = sendport(host, port)
+ sendport(host, port)
return sock
end
private :makeport
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 20c9bb7c92..33c88c8ce5 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1563,7 +1563,7 @@ module Net #:nodoc:
# or sub-type is not given (e.g. "Content-Type: text").
def sub_type
return nil unless @header['content-type']
- main, sub = *self['Content-Type'].split(';').first.to_s.split('/')
+ _, sub = *self['Content-Type'].split(';').first.to_s.split('/')
return nil unless sub
sub.strip
end
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 9de6395236..c3dda46606 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -2680,7 +2680,6 @@ module Net
token = match(T_ATOM)
name = token.value.upcase
match(T_SPACE)
- mailbox = astring
data = []
token = lookahead
if token.symbol == T_SPACE