Skip to content

Commit

Permalink
Fixes nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
hendoxc committed Jan 13, 2025
1 parent 278604f commit 21e7abc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,19 @@ func SetStateFromTable(ctx context.Context, state *models.TableResourceModel, ta
state.IngestionConfig = convertIngestionConfig(table)
}

if state.TierConfigs != nil {
if table.TierConfigs != nil {
state.TierConfigs = convertTierConfigs(table)
}

if state.Metadata != nil {
if table.Metadata != nil {
state.Metadata = convertMetadata(table)
}

tableIndexConfig, resultDiags := convertTableIndexConfig(ctx, table)
if resultDiags.HasError() {
diags.Append(resultDiags...)
}

Check failure on line 39 in internal/converter/converter.go

View workflow job for this annotation

GitHub Actions / Build

File is not properly formatted (gofmt)

Check failure on line 39 in internal/converter/converter.go

View workflow job for this annotation

GitHub Actions / Build

File is not properly formatted (gofmt)
state.TableIndexConfig = tableIndexConfig

// Routing Config
Expand Down

0 comments on commit 21e7abc

Please sign in to comment.