Skip to content

Commit 5da2ff5

Browse files
committed
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 <[email protected]>
1 parent 63bb3db commit 5da2ff5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

bake/hclparser/gohcl/decode_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,10 @@ func TestDecodeBody(t *testing.T) {
413413
} `hcl:"noodle,block"`
414414
}{}),
415415
func(gotI any) bool {
416-
//nolint:misspell
417416
// Generating two diagnostics is good enough for this one.
418417
// (one for the missing noodle block and the other for
419418
// the JSON serialization detecting the missing level of
420-
// heirarchy for the label.)
419+
// hierarchy for the label.)
421420
return true
422421
},
423422
2,

bake/hclparser/gohcl/schema.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ func ImpliedBodySchema(val any) (schema *hcl.BodySchema, partial bool) {
5252

5353
switch {
5454
case field.Type.AssignableTo(exprType):
55-
//nolint:misspell
56-
// If we're decoding to hcl.Expression then absense can be
55+
// If we're decoding to hcl.Expression then absence can be
5756
// indicated via a null value, so we don't specify that
5857
// the field is required during decoding.
5958
required = false

0 commit comments

Comments
 (0)