From fdc50a902d790ace03d4b113d06c901d6e92d6a8 Mon Sep 17 00:00:00 2001 From: 1riatsila1 Date: Wed, 2 Oct 2024 17:15:34 +0200 Subject: [PATCH] remove comments --- .../provider/data-sources/network_group_assignment.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/config-api-provider/provider/data-sources/network_group_assignment.go b/pkg/config-api-provider/provider/data-sources/network_group_assignment.go index 297c3fb2..d358b836 100644 --- a/pkg/config-api-provider/provider/data-sources/network_group_assignment.go +++ b/pkg/config-api-provider/provider/data-sources/network_group_assignment.go @@ -10,7 +10,6 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" ) -// Ensure the implementation satisfies the expected interfaces. var ( _ datasource.DataSource = &networkGroupAssignmentDataSource{} _ datasource.DataSourceWithConfigure = &networkGroupAssignmentDataSource{} @@ -64,7 +63,6 @@ func (d *networkGroupAssignmentDataSource) Schema(_ context.Context, _ datasourc func (d *networkGroupAssignmentDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { var state networkGroupAssignmentDataSourceModel - // Read configuration from request diags := req.Config.Get(ctx, &state) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { @@ -89,7 +87,6 @@ func (d *networkGroupAssignmentDataSource) Read(ctx context.Context, req datasou state.NetworkID = types.StringValue(networkGroupAssignment.NetworkUid) state.GroupID = types.StringValue(networkGroupAssignment.GroupUid) - // Set state diags = resp.State.Set(ctx, &state) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { @@ -98,8 +95,6 @@ func (d *networkGroupAssignmentDataSource) Read(ctx context.Context, req datasou } func (d *networkGroupAssignmentDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { - // Add a nil check when handling ProviderData because Terraform - // sets that data after it calls the ConfigureProvider RPC. if req.ProviderData == nil { return }