From 07f7b282dd9f045917c39a458dc2571e749624b1 Mon Sep 17 00:00:00 2001 From: Heng Lu Date: Thu, 7 Mar 2024 13:49:19 +0800 Subject: [PATCH] fix lint --- hcl/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcl/parse.go b/hcl/parse.go index 7780187..dce9de8 100644 --- a/hcl/parse.go +++ b/hcl/parse.go @@ -420,7 +420,7 @@ func skipJustAttributesDiags(diags hcl.Diagnostics) hcl.Diagnostics { result := hcl.Diagnostics{} for _, diag := range diags { if !regexp.MustCompile(BlockNotAllowed).MatchString(diag.Error()) { - result.Append(diag) + result = result.Append(diag) } }