Skip to content

Commit

Permalink
rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dehall committed Jun 27, 2024
1 parent 1cc5793 commit 8d8de94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/davinci_pas_test_kit/pas_bundle_validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ def validate_bundle_entries_against_profiles(version)
resource = item[:resource]
base_profile = FHIR::Definitions.resource_definition(resource.resourceType).url
success_profile = item[:profile_urls].find do |url|
profile_to_validate = (url == base_profile) ? url : "#{url}|#{version}"
resource_is_valid?(resource: resource, profile_url: profile_to_validate)
profile_to_validate = url == base_profile ? url : "#{url}|#{version}"
resource_is_valid?(resource:, profile_url: profile_to_validate)
end

validation_error_messages << generate_non_conformance_message(item) unless success_profile
Expand Down

0 comments on commit 8d8de94

Please sign in to comment.