bake/hclparser/gohcl: fix typo
Looks like we forked this code, including the typo. As we already modify the code to add the `//nolint`, we may as well fix the typo itself instead. https://github.com/hashicorp/hcl/blob/dfa124f3c93ff1764fda03702a7a9aa8c9db48d8/gohcl/decode_test.go#L417-L423 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -413,11 +413,10 @@ func TestDecodeBody(t *testing.T) {
|
||||
} `hcl:"noodle,block"`
|
||||
}{}),
|
||||
func(gotI any) bool {
|
||||
//nolint:misspell
|
||||
// Generating two diagnostics is good enough for this one.
|
||||
// (one for the missing noodle block and the other for
|
||||
// the JSON serialization detecting the missing level of
|
||||
// heirarchy for the label.)
|
||||
// hierarchy for the label.)
|
||||
return true
|
||||
},
|
||||
2,
|
||||
|
||||
@@ -52,8 +52,7 @@ func ImpliedBodySchema(val any) (schema *hcl.BodySchema, partial bool) {
|
||||
|
||||
switch {
|
||||
case field.Type.AssignableTo(exprType):
|
||||
//nolint:misspell
|
||||
// If we're decoding to hcl.Expression then absense can be
|
||||
// If we're decoding to hcl.Expression then absence can be
|
||||
// indicated via a null value, so we don't specify that
|
||||
// the field is required during decoding.
|
||||
required = false
|
||||
|
||||
Reference in New Issue
Block a user