Skip to content

Commit

Permalink
remove unused heredoc token
Browse files Browse the repository at this point in the history
  • Loading branch information
drlau committed Sep 16, 2020
1 parent f3e2f8e commit 8a237d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion heredoc_attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

type HeredocAttributeChange struct {
Name string
Token string
Before []string
After []string
UpdateType UpdateType
Expand Down
2 changes: 1 addition & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func parseHeredocAttribute(s *bufio.Scanner) (*HeredocAttributeChange, error) {
}
for s.Scan() {
text := formatInput(s.Bytes())
if text == result.Token {
if IsHeredocAttributeTerminator(text) {
return result, nil
}

Expand Down

0 comments on commit 8a237d7

Please sign in to comment.