From e1fc2d65e55f5dd8582d49b6afd84579d90a934f Mon Sep 17 00:00:00 2001 From: Andy Lo-A-Foe Date: Wed, 18 Sep 2024 21:40:38 +0200 Subject: [PATCH] Linter fixes --- .../services/cdr/practitioner/data_source_cdr_practitioner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/cdr/practitioner/data_source_cdr_practitioner.go b/internal/services/cdr/practitioner/data_source_cdr_practitioner.go index 02b4b597..e9c9cc42 100644 --- a/internal/services/cdr/practitioner/data_source_cdr_practitioner.go +++ b/internal/services/cdr/practitioner/data_source_cdr_practitioner.go @@ -107,7 +107,7 @@ func dataSourceCDRPropositionRead(ctx context.Context, d *schema.ResourceData, m return diag.FromErr(fmt.Errorf("R4.MarshalResource: %w", err)) } _ = d.Set("fhir_json", string(jsonResource)) - if resource.Identifier != nil && len(resource.Identifier) > 0 { + if len(resource.Identifier) > 0 { var uses []string var systems []string var values []string @@ -153,7 +153,7 @@ func dataSourceCDRPropositionRead(ctx context.Context, d *schema.ResourceData, m return diag.FromErr(fmt.Errorf("STU3.MarshalResource: %w", err)) } _ = d.Set("fhir_json", string(jsonResource)) - if resource.Identifier != nil && len(resource.Identifier) > 0 { + if len(resource.Identifier) > 0 { var uses []string var systems []string var values []string