diff options
author | Espartaco Palma <[email protected]> | 2018-10-27 17:13:31 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-10-07 17:46:00 +0900 |
commit | b23fba91ae60c71649cb5e5f8b63c87e6a63020f () | |
tree | 918d2e9fded7eb4ce12332c57f32c0cad30863ea /lib/ipaddr.rb | |
parent | 323e7a6744a18a729d8011e237e64291cb6c02bd (diff) |
[ruby/ipaddr] Removing superfluos assingments & return
Also adding test for ntop https://.com/ruby/ipaddr/commit/0ba16cca10
-rw-r--r-- | lib/ipaddr.rb | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -112,13 +112,12 @@ class IPAddr def self.ntop(addr) case addr.size when 4 - s = addr.unpack('C4').join('.') when 16 - s = IN6FORMAT % addr.unpack('n8') else raise AddressFamilyError, "unsupported address family" end - return s end # Returns a new ipaddr built by bitwise AND. |