Skip to content
Snippets Groups Projects
Commit c06cb644 authored by Alex Reisner's avatar Alex Reisner
Browse files

Return strict boolean, for clarity.

parent f47fa5f8
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ module Geocoder
class IpAddress < String
def loopback?
valid? and (self == "0.0.0.0" or self.match(/\A127\./) or self == "::1")
valid? and !!(self == "0.0.0.0" or self.match(/\A127\./) or self == "::1")
end
def valid?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment