Skip to content

Commit

Permalink
remove useless panic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziine committed Nov 23, 2023
1 parent e1179b3 commit e065575
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/sql/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,6 @@ func (p *Parser) parseTokens(tokens ...scanner.Token) error {
// present, it unscans and return false. If the first is present, all the others
// must be parsed otherwise an error is returned.
func (p *Parser) parseOptional(tokens ...scanner.Token) (bool, error) {
if len(tokens) == 0 {
return false, nil
}
// Parse optional first token
if tok, _, _ := p.ScanIgnoreWhitespace(); tok != tokens[0] {
p.Unscan()
Expand Down

0 comments on commit e065575

Please sign in to comment.