Skip to content

Commit 87fe1cd

Browse files
committed
chore: update extract logic for parameter styling
1 parent ccd1012 commit 87fe1cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extract/parameter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func ParameterFromBlock(block *terraform.Block) (*types.Parameter, hcl.Diagnosti
5757
}
5858

5959
ftmeta := optionalString(block, "styling")
60-
formTypeMeta := make(map[string]any)
60+
var formTypeMeta types.ParameterStyling
6161
if ftmeta != "" {
6262
_ = json.Unmarshal([]byte(ftmeta), &formTypeMeta)
6363
}

extract/state.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ func ParameterFromState(block *tfjson.StateResource) (types.Parameter, error) {
5454
}
5555

5656
ftmeta := st.optionalString("styling")
57-
var formTypeMeta any
57+
var formTypeMeta types.ParameterStyling
5858
if ftmeta != "" {
5959
_ = json.Unmarshal([]byte(ftmeta), &formTypeMeta)
6060
} else {
61-
formTypeMeta = map[string]any{}
61+
formTypeMeta = types.ParameterStyling{}
6262
}
6363

6464
param := types.Parameter{

0 commit comments

Comments
 (0)