Skip to content

Commit f353685

Browse files
committed
PR comments, mostly typos
1 parent c7e7b4e commit f353685

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

provider/formtype.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func ValidateFormType(paramType OptionType, optionCount int, specifiedFormType P
142142
if optionsExist {
143143
optionMsg = " when options exist"
144144
} else {
145-
optionMsg = " when options do no exist"
145+
optionMsg = " when options do not exist"
146146
}
147147
}
148148
return paramType, specifiedFormType,

provider/parameter.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ func (v *Parameter) Valid() diag.Diagnostics {
429429
}
430430
}
431431

432-
optionNames := map[string]interface{}{}
433-
optionValues := map[string]interface{}{}
432+
optionNames := map[string]any{}
433+
optionValues := map[string]any{}
434434
if len(v.Option) > 0 {
435435
for _, option := range v.Option {
436436
_, exists := optionNames[option.Name]
@@ -577,7 +577,7 @@ func valueIsListString(value string, path cty.Path) ([]string, diag.Diagnostics)
577577
return nil, diag.Diagnostics{
578578
{
579579
Severity: diag.Error,
580-
Summary: fmt.Sprintf("When using list(string) type, value must be a json encoded list of strings"),
580+
Summary: "When using list(string) type, value must be a json encoded list of strings",
581581
Detail: fmt.Sprintf("value %q is not a valid list of strings", value),
582582
AttributePath: path,
583583
},

0 commit comments

Comments
 (0)