Skip to content

Commit 9a96ce5

Browse files
remove the 'reposet atom must have an argument' constraint to handle when a search context is empty.
1 parent 5b45752 commit 9a96ce5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

query/parse.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,6 @@ func parseExpr(in []byte) (Q, int, error) {
241241
// Later we will lift this into a root, like we do for caseQ
242242
expr = &Type{Type: t, Child: nil}
243243
case tokRepoSet:
244-
if text == "" {
245-
return nil, 0, fmt.Errorf("the reposet: atom must have an argument")
246-
}
247-
248244
// Split the text by commas to get individual repo names
249245
repos := strings.Split(text, ",")
250246
set := make(map[string]bool)

0 commit comments

Comments
 (0)