diff options
Diffstat (limited to 'app/services/fetch_remote_account_service.rb')
-rw-r--r-- | app/services/fetch_remote_account_service.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/services/fetch_remote_account_service.rb b/app/services/fetch_remote_account_service.rb index 7cbc9f6ec..3c3694a65 100644 --- a/app/services/fetch_remote_account_service.rb +++ b/app/services/fetch_remote_account_service.rb @@ -1,9 +1,11 @@ +# frozen_string_literal: true + class FetchRemoteAccountService < BaseService def call(url) atom_url, body = FetchAtomService.new.call(url) return nil if atom_url.nil? - return process_atom(atom_url, body) + process_atom(atom_url, body) end private @@ -25,7 +27,7 @@ class FetchRemoteAccountService < BaseService Rails.logger.debug "Unparseable URL given: #{url}" nil rescue Nokogiri::XML::XPath::SyntaxError - Rails.logger.debug "Invalid XML or missing namespace" + Rails.logger.debug 'Invalid XML or missing namespace' nil end end |