Skip to content

Commit

Permalink
fix(parser): make go vet happy
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaLohinski committed Feb 1, 2024
1 parent 1ae972c commit 06841b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser/variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (p *Parser) parseList() (nodes.Expression, error) {

if p.Match(tokens.RightBracket) != nil {
// Empty list
return &nodes.List{t, []nodes.Expression{}}, nil
return &nodes.List{Location: t, Val: []nodes.Expression{}}, nil
}

expr, err := p.ParseExpression()
Expand Down Expand Up @@ -116,7 +116,7 @@ func (p *Parser) parseList() (nodes.Expression, error) {
return nil, p.Error("Expected ]", p.Current())
}

return &nodes.List{t, list}, nil
return &nodes.List{Location: t, Val: list}, nil
}

func (p *Parser) parseTupleOrExpression() (nodes.Expression, error) {
Expand Down

0 comments on commit 06841b6

Please sign in to comment.