Skip to content

Commit

Permalink
refactor: remove unused diagnosticsWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Dec 12, 2023
1 parent d62dd74 commit 9088116
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions equinix/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 9088116

Please sign in to comment.