Skip to content

Commit

Permalink
Fix queries with no data filter
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Nov 29, 2024
1 parent f053426 commit f1bae89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/pkappa2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ func main() {
return
}

if dataRegexes == nil {
dataRegexes = &index.DataRegexes{}
}
response.DataRegexes = *dataRegexes
response.Elapsed = time.Since(start).Microseconds()
response.MoreResults = hasMore
Expand Down

0 comments on commit f1bae89

Please sign in to comment.