summaryrefslogtreecommitdiff
path: root/lib/nickserver/nicknym/source.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2017-09-23 11:07:32 +0200
committerAzul <azul@riseup.net>2017-09-23 16:53:27 +0200
commit40916407517f4bdb75a295caf29e02d4f403349b (patch)
tree8219567c0ecdf583fdd916594ec7915ab9eb2f19 /lib/nickserver/nicknym/source.rb
parent22c6c80310a8d3d3abbd1006598b4fbaec98ffd0 (diff)
style: rubocop mostly auto-correct
Diffstat (limited to 'lib/nickserver/nicknym/source.rb')
-rw-r--r--lib/nickserver/nicknym/source.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nickserver/nicknym/source.rb b/lib/nickserver/nicknym/source.rb
index f49547e..9c2d8c4 100644
--- a/lib/nickserver/nicknym/source.rb
+++ b/lib/nickserver/nicknym/source.rb
@@ -9,13 +9,13 @@ module Nickserver
def available_for?(domain)
status, body = adapter.get "https://#{domain}/provider.json",
- rescue: 'failed to connect: getaddrinfo'
+ rescue: 'failed to connect: getaddrinfo'
status == 200 && provider_with_mx?(body)
end
def query(email)
status, body = nicknym_get email.domain, address: email.to_s
- return Nickserver::Response.new(status, body)
+ Nickserver::Response.new(status, body)
end
protected