Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
vektah committed May 12, 2018
1 parent b43ac9d commit f5a82ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
)

func ParseQuery(source string) (QueryDocument, *errors.Syntax) {
parser := parser{
p := parser{
lexer: lexer.New(source),
}
return parser.parseQueryDocument(), parser.err
return p.parseQueryDocument(), p.err
}

func (p *parser) parseQueryDocument() QueryDocument {
Expand Down
4 changes: 2 additions & 2 deletions schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
)

func ParseSchema(source string) (SchemaDocument, *errors.Syntax) {
parser := parser{
p := parser{
lexer: lexer.New(source),
}
return parser.parseSchemaDocument(), parser.err
return p.parseSchemaDocument(), p.err
}

func (p *parser) parseSchemaDocument() SchemaDocument {
Expand Down

0 comments on commit f5a82ae

Please sign in to comment.