Skip to content

Commit 3ba59d2

Browse files
committed
fix AsString reference
1 parent 5104c52 commit 3ba59d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/clidisplay/resources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func WorkspaceTags(writer io.Writer, tags types.TagBlocks) hcl.Diagnostics {
3030
k, v := tag.AsStrings()
3131
tableWriter.AppendRow(table.Row{k, v, ""})
3232
continue
33-
//diags = diags.Extend(tDiags)
33+
// diags = diags.Extend(tDiags)
3434
//if !diags.HasErrors() {
3535
// tableWriter.AppendRow(table.Row{k, v, ""})
3636
// continue

types/parameter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (r *ParameterData) Valid(value HCLString) hcl.Diagnostics {
9797
var defPtr *string
9898

9999
if r.DefaultValue.Valid() && r.DefaultValue.IsKnown() {
100-
def := r.DefaultValue.Value.AsString()
100+
def := r.DefaultValue.AsString()
101101
defPtr = &def
102102
}
103103

0 commit comments

Comments
 (0)