Skip to content

Commit

Permalink
fix linter and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
almostinf committed Aug 25, 2023
1 parent 35a0b20 commit dc1728f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions index/bleve/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ import (
func (index *TriggerIndex) Search(filterTags []string, searchString string, onlyErrors bool, page int64, size int64) (searchResults []*moira.SearchResult, total int64, err error) {
if size < 0 {
page = 0
docs, err := index.index.DocCount()
var docs uint64
docs, err = index.index.DocCount()
if err != nil {
return searchResults, total, err
return
}
size = int64(docs)
}
Expand Down
8 changes: 4 additions & 4 deletions index/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ func (index *Index) Start() error {
return nil
}

// err := index.fillIndex()
// if err != nil {
// return err
// }
err := index.fillIndex()
if err != nil {
return err
}

index.indexed = true
index.inProgress = false
Expand Down

0 comments on commit dc1728f

Please sign in to comment.