@@ -231,12 +231,12 @@ func (r *profilesWarehouseResource) Update(ctx context.Context, req resource.Upd
231
231
232
232
// Only send schemaName to API if it differs from the remote state.
233
233
// 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.
235
235
// 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).
240
240
schemaName := determineSchemaNameForUpdate (plan .SchemaName , state .SchemaName )
241
241
242
242
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
369
369
// schema name already exists in the warehouse configuration.
370
370
//
371
371
// 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).
374
374
//
375
375
// 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).
377
377
func determineSchemaNameForUpdate (planSchemaName , stateSchemaName types.String ) * string {
378
378
// Don't send schemaName to API if plan value is unknown.
379
379
if planSchemaName .IsUnknown () {
0 commit comments