Skip to content

Commit

Permalink
Fix more go vet warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmai committed Oct 16, 2018
1 parent 89af2b2 commit 245f88a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gql/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -2292,7 +2292,7 @@ func getRoot(it *lex.ItemIterator) (gq *GraphQuery, rerr error) {
return nil, x.Errorf("Sorting by an attribute: [%s] can only be done once", val)
}
attr, langs := attrAndLang(val)
gq.Order = append(gq.Order, &pb.Order{attr, key == "orderdesc", langs})
gq.Order = append(gq.Order, &pb.Order{Attr: attr, Desc: key == "orderdesc", Langs: langs})
order[val] = true
continue
}
Expand Down Expand Up @@ -2697,7 +2697,7 @@ func godeep(it *lex.ItemIterator, gq *GraphQuery) error {
return x.Errorf("Sorting by an attribute: [%s] can only be done once", p.Val)
}
attr, langs := attrAndLang(p.Val)
curp.Order = append(curp.Order, &pb.Order{attr, p.Key == "orderdesc", langs})
curp.Order = append(curp.Order, &pb.Order{Attr: attr, Desc: p.Key == "orderdesc", Langs: langs})
order[p.Val] = true
continue
}
Expand Down

0 comments on commit 245f88a

Please sign in to comment.