From 8d8de948155717abdad60b8864ebd9db6a3596a0 Mon Sep 17 00:00:00 2001 From: Dylan Hall Date: Wed, 5 Jun 2024 11:22:42 -0400 Subject: [PATCH] rubocop fixes --- lib/davinci_pas_test_kit/pas_bundle_validation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/davinci_pas_test_kit/pas_bundle_validation.rb b/lib/davinci_pas_test_kit/pas_bundle_validation.rb index 5671ef5..c00f177 100644 --- a/lib/davinci_pas_test_kit/pas_bundle_validation.rb +++ b/lib/davinci_pas_test_kit/pas_bundle_validation.rb @@ -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