diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-09 22:10:20 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-10 02:36:38 -0600 |
commit | 0512709a77977ea0ffc759d0f9411757c09404a5 (patch) | |
tree | 949ec4291b38f099a21a1bc92c4aeafeb2ce3e89 /app/services/fetch_remote_status_service.rb | |
parent | 7fe078cf50aa92406dd96b452a240a8011f3601c (diff) |
set `resource_options` to empty hash if `nil`
Diffstat (limited to 'app/services/fetch_remote_status_service.rb')
-rw-r--r-- | app/services/fetch_remote_status_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/fetch_remote_status_service.rb b/app/services/fetch_remote_status_service.rb index 4fde2b395..e8f9a671b 100644 --- a/app/services/fetch_remote_status_service.rb +++ b/app/services/fetch_remote_status_service.rb @@ -4,6 +4,7 @@ class FetchRemoteStatusService < BaseService def call(url, prefetched_body = nil, announced_by: nil, requested: false) if prefetched_body.nil? resource_url, resource_options = FetchAtomService.new.call(url) + resource_options = {} if resource_options.nil? else resource_url = url resource_options = { prefetched_body: prefetched_body } |