Skip to content

Commit

Permalink
use bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
drlau committed Sep 23, 2020
1 parent baf7ca7 commit 9cc1d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func ParseFromFile(filepath string) ([]*ResourceChange, error) {
}

func parseResource(s *bufio.Scanner) (*ResourceChange, error) {
rc, err := NewResourceChangeFromComment(formatInput(s.Text()))
rc, err := NewResourceChangeFromComment(formatInput(s.Bytes()))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 9cc1d28

Please sign in to comment.