Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions query/query_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,10 @@ func NaiveQueryApply(q Query, qr Results) Results {
}
prefix = path.Clean(prefix)
}
// If the prefix isn't "/", end it in a "/" so we only find keys
// _under_ the prefix.
// If the prefix is empty, ignore it.
if prefix != "/" {
prefix += "/"
qr = NaiveFilter(qr, FilterKeyPrefix{prefix + "/"})
}
qr = NaiveFilter(qr, FilterKeyPrefix{prefix})
}
for _, f := range q.Filters {
qr = NaiveFilter(qr, f)
Expand Down