summaryrefslogtreecommitdiff
path: root/lib/nickserver/wkd/source.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2017-09-23 13:43:29 +0200
committerAzul <azul@riseup.net>2017-09-23 16:53:27 +0200
commitf40ef14010af08c49810c0a6a2349072948170e6 (patch)
tree19a2b13d35bb45b7d36c0c6f84fd483efbf55ece /lib/nickserver/wkd/source.rb
parent40916407517f4bdb75a295caf29e02d4f403349b (diff)
style: more rubocop fixes
Diffstat (limited to 'lib/nickserver/wkd/source.rb')
-rw-r--r--lib/nickserver/wkd/source.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nickserver/wkd/source.rb b/lib/nickserver/wkd/source.rb
index b994c6c..43f0b2e 100644
--- a/lib/nickserver/wkd/source.rb
+++ b/lib/nickserver/wkd/source.rb
@@ -9,7 +9,9 @@ module Nickserver::Wkd
def query(email)
url = Url.new(email)
status, blob = adapter.get url
- Hkp::Response.new(email.to_s, armor_key(blob)) if status == 200
+ if status == 200
+ Nickserver::Hkp::Response.new(email.to_s, armor_key(blob))
+ end
end
protected