From e0bcd5ff378e33ebaac899a51323918c1e781148 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 4 Nov 2016 10:02:00 +0000 Subject: [PATCH] No need to create extra variable --- sql/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/parser.go b/sql/parser.go index 6d999d4b..a9d8aa14 100644 --- a/sql/parser.go +++ b/sql/parser.go @@ -176,7 +176,7 @@ func (p *parser) shouldBe(expected ...Token) (tok Token, lit string, err error) tok, lit, _ = p.scan() - if found := p.in(tok, expected); !found { + if !p.in(tok, expected) { p.unscan() err = &ParseError{Found: lit, Expected: lookup(expected)} }