From 0512709a77977ea0ffc759d0f9411757c09404a5 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 9 Dec 2019 22:10:20 -0600 Subject: set `resource_options` to empty hash if `nil` --- app/services/fetch_remote_status_service.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/services') 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 } -- cgit