Skip to content

Commit

Permalink
Revert "Fix heredoc parsing in parseConfig"
Browse files Browse the repository at this point in the history
This reverts commit 49b8284.
  • Loading branch information
syndicut committed Jan 22, 2021
1 parent 49b8284 commit 93eb9af
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tflint/client/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ func parseExpression(src []byte, filename string, start hcl.Pos) (hcl.Expression

func parseConfig(src []byte, filename string, start hcl.Pos) (*hcl.File, hcl.Diagnostics) {
if strings.HasSuffix(filename, ".tf") {
// HACK: Always add a newline to avoid heredoc parse errors.
// @see https://github.com/hashicorp/hcl/issues/441
src = []byte(string(src) + "\n")
return hclsyntax.ParseConfig(src, filename, start)
}

Expand Down

0 comments on commit 93eb9af

Please sign in to comment.