From 9088116d44d309e8711b1b214ecb645a38b6b6c3 Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Mon, 11 Dec 2023 11:29:49 -0600 Subject: [PATCH] refactor: remove unused diagnosticsWrapper --- equinix/provider.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/equinix/provider.go b/equinix/provider.go index 2f9ed13a6..b26d9dcf7 100644 --- a/equinix/provider.go +++ b/equinix/provider.go @@ -443,13 +443,3 @@ func schemaSetToMap(set *schema.Set) map[int]interface{} { } return transformed } - -func diagnosticsWrapper(fn func(ctx context.Context, d *schema.ResourceData, meta interface{}) error) func(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - return func(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - if err := fn(ctx, d, meta); err != nil { - return diag.FromErr(err) - } - - return nil - } -}