-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gohcl: Fix docs about supported types for blocks.
This commit fixes a clause in the `gohcl` package documentation which incorrectly states that HCL blocks could be decoded into `hcl.Body` and `hcl.Block` types. It also removes some code paths in `decodeBlockToValue()` that _appeared_ to handled these cases. In practice, these paths were unreachable anyway due to various reflection-based type checks made before `decodeBlockToValue()` is called.
- Loading branch information
Showing
2 changed files
with
9 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters