Skip to content

Commit c8d9e7c

Browse files
committed
lint
1 parent 1f04964 commit c8d9e7c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

internal/provider/profiles_warehouse_resource.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,12 @@ func (r *profilesWarehouseResource) Update(ctx context.Context, req resource.Upd
231231

232232
// Only send schemaName to API if it differs from the remote state.
233233
// This prevents API failures when the schema name already exists in the warehouse.
234-
// The Segment API fails if we send a schemaName that matches the current configuration,
234+
// The Segment API fails if we send a schemaName that matches the current configuration.
235235
// even though it should be a no-op. This handles all cases:
236-
// 1. Both null/undefined: Equal() returns true, schemaName stays nil (not sent)
237-
// 2. Both have same value: Equal() returns true, schemaName stays nil (not sent)
238-
// 3. One null, other has value: Equal() returns false, schemaName gets the plan value (sent)
239-
// 4. Both have different values: Equal() returns false, schemaName gets the plan value (sent)
236+
// 1. Both null/undefined: Equal() returns true, schemaName stays nil (not sent).
237+
// 2. Both have same value: Equal() returns true, schemaName stays nil (not sent).
238+
// 3. One null, other has value: Equal() returns false, schemaName gets the plan value (sent).
239+
// 4. Both have different values: Equal() returns false, schemaName gets the plan value (sent).
240240
schemaName := determineSchemaNameForUpdate(plan.SchemaName, state.SchemaName)
241241

242242
out, body, err := r.client.ProfilesSyncAPI.UpdateProfilesWarehouseForSpaceWarehouse(r.authContext, state.SpaceID.ValueString(), state.ID.ValueString()).UpdateProfilesWarehouseForSpaceWarehouseAlphaInput(api.UpdateProfilesWarehouseForSpaceWarehouseAlphaInput{
@@ -369,11 +369,11 @@ func findProfileWarehouse(authContext context.Context, client *api.APIClient, id
369369
// schema name already exists in the warehouse configuration.
370370
//
371371
// The function returns nil (not sent to API) when:
372-
// - Plan value is unknown (should not send unknown values to API)
373-
// - Plan and state values are equal (no change needed)
372+
// - Plan value is unknown (should not send unknown values to API).
373+
// - Plan and state values are equal (no change needed).
374374
//
375375
// The function returns a pointer to the plan value when:
376-
// - Plan and state values are different (legitimate change)
376+
// - Plan and state values are different (legitimate change).
377377
func determineSchemaNameForUpdate(planSchemaName, stateSchemaName types.String) *string {
378378
// Don't send schemaName to API if plan value is unknown.
379379
if planSchemaName.IsUnknown() {

0 commit comments

Comments
 (0)