Skip to content

Commit

Permalink
rubocop update after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
dehall committed Jan 17, 2025
1 parent c13d895 commit 978b3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/inferno/dsl/fhir_resource_navigation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ def find_a_value_at(given_element, path, include_dar: false, &block)
nil
end

def find_in_elements(elements, include_dar: false, &block)
def find_in_elements(elements, include_dar: false, &)
unless include_dar
elements = elements.reject do |el|
el.respond_to?(:extension) && el.extension.any? { |ext| ext.url == DAR_EXTENSION_URL }
end
end

return elements.find(&block) if block_given?
return elements.find(&) if block_given?

elements.first
end
Expand Down

0 comments on commit 978b3cb

Please sign in to comment.