lib/ronin/extensions/resolv.rb in ronin-support-0.5.0 vs lib/ronin/extensions/resolv.rb in ronin-support-0.5.1
- old
+ new
@@ -68,13 +68,11 @@
# @since 0.3.0
#
# @api public
#
def Resolv.resolver(nameserver=nil)
- if nameserver
- DNS.new(:nameserver => nameserver)
- else
- self
+ if nameserver then DNS.new(:nameserver => nameserver)
+ else self
end
end
end