Skip to content

Commit

Permalink
rest: Simplify query
Browse files Browse the repository at this point in the history
Change-Id: I50f66cf0886103e1cace55288cd8f469dfdbbfac
  • Loading branch information
keegancsmith authored and hanwen committed Jan 22, 2018
1 parent 0a9e7c0 commit 2f1a2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func serveSearchAPIStructured(searcher zoekt.Searcher, req *SearchRequest) (*Sea
query.NewAnd(&query.Repo{Pattern: r.Repo}, query.NewOr(branchQs...)))
}

finalQ := query.NewAnd(q, query.NewOr(restrictions...))
finalQ := query.Simplify(query.NewAnd(q, query.NewOr(restrictions...)))
var options zoekt.SearchOptions
options.SetDefaults()

Expand Down

0 comments on commit 2f1a2a9

Please sign in to comment.