diff options
| author | Olle Jonsson <olle.jonsson@gmail.com> | 2020-04-01 15:46:19 +0200 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2020-04-01 08:00:28 -0700 |
| commit | 3bc57e7e55bef436e00bb040ce201a8b88186e8f (patch) | |
| tree | 34efd3d9132e9cac2c2de274e27bf7717890ff94 | |
| parent | 026537fbe8baa9a9ac71417815b5be26fc28da4f (diff) | |
| download | rack-3bc57e7e55bef436e00bb040ce201a8b88186e8f.tar.gz | |
Request#port: Avoid warning about unused variables
| -rw-r--r-- | lib/rack/request.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/request.rb b/lib/rack/request.rb index 638e94d3..a69bc8e0 100644 --- a/lib/rack/request.rb +++ b/lib/rack/request.rb @@ -307,7 +307,7 @@ module Rack def port if authority = self.authority - _, _, port = split_authority(self.authority) + _, _, port = split_authority(authority) if port return port @@ -319,7 +319,7 @@ module Rack end if scheme = self.scheme - if port = DEFAULT_PORTS[self.scheme] + if port = DEFAULT_PORTS[scheme] return port end end |
