remove error handling in scanner

This commit is contained in:
Gokcehan committed 2016-10-15 22:59:31 +03:00
1 parent a3965ca1d9
commit 5470783f99
3 files changed
+42 -38

No files matched your search

-10
View File
@@ -159,11 +159,6 @@ func (p *Parser) parseExpr() Expr {
s.scan()
if s.err != nil {
p.err = fmt.Errorf("parsing: %s", s.err)
return nil
}
result = &CallExpr{name, args}
}
case TokenColon:
@@ -218,11 +213,6 @@ func (p *Parser) parseExpr() Expr {
s.scan()
s.scan()
if s.err != nil {
p.err = fmt.Errorf("parsing: %s", s.err)
return nil
}
result = &ExecExpr{pref, expr}
default:
// TODO: handle error