Remove some redundant cmd/puffs/gen.go code.

This commit is contained in:
Nigel Tao committed 2017-06-18 09:26:30 +10:00
1 parent 7c85ed04f9
commit f23a80820c
2 files changed
+5 -7

No files matched your search

+2 -2
View File
@@ -112,8 +112,8 @@ func do(r io.Reader, filename string) error {
if err != nil {
return err
}
// We don't need the AST node to pretty-print, but it's worth puffsfmt
// rejecting syntax errors. This is just a parse, not a full type check.
// We don't need the AST node to pretty-print, but it's worth rejecting
// syntax errors early. This is just a parse, not a full type check.
if _, err := parse.Parse(tm, filename, tokens); err != nil {
return err
}