diff --git a/app/services/guidance_service.rb b/app/services/guidance_service.rb index d79329c..0e773d7 100644 --- a/app/services/guidance_service.rb +++ b/app/services/guidance_service.rb @@ -23,9 +23,6 @@ def any?(org:nil, question:nil) if org.nil? - if question.nil? - return hashified_annotations? || hashified_guidance_groups? - end if question.present? # check each annotation/guidance group for a response to this question # Would be nice not to have to crawl the entire list each time we want to know this @@ -35,6 +32,8 @@ else return anno end + else # question.nil? + return hashified_annotations? || hashified_guidance_groups? end end return guidance_annotations?(org: org, question: question) ||