lib/httpx/domain_name.rb in httpx-0.10.2 vs lib/httpx/domain_name.rb in httpx-0.11.0
- old
+ new
@@ -137,13 +137,11 @@
if othername == @hostname
0
elsif @hostname.end_with?(othername) && @hostname[-othername.size - 1, 1] == DOT
# The other is higher
-1
- elsif othername.end_with?(@hostname) && othername[-@hostname.size - 1, 1] == DOT
- # The other is lower
- 1
else
+ # The other is lower
1
end
end
# :nocov: