Skip to content

Commit 8327960

Browse files
committed
updated search handler
1 parent c821568 commit 8327960

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/search/handlers.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package search
22

33
import (
4-
"fmt"
54
"path/filepath"
65
"sort"
76

@@ -68,9 +67,8 @@ func searchHandler(query *Query) error {
6867
// sort main result array
6968
sort.Sort(hits)
7069

71-
fmt.Printf("Length: %d", len(hits))
7270
if len(hits) > query.Limit {
73-
hits = hits[0 : query.Limit-1]
71+
hits = hits[0:query.Limit]
7472
}
7573

7674
// sort tags

0 commit comments

Comments
 (0)