This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/modules/indexer/code
Gusted ab1379743e
Fix nil checking on typed interface (#17598)
* Fix nil checking on typed interface

- Partially resoles #17596
- Resolves SA4023 errors.
- Ensure correctly that typed interface are nil.

* Remove unnecessary code

`NewBleveIndexer` will never return nil, even on errors.

* Patch `NewBleveIndexer`

* Fix low-level functions

* Remove deadcode

* Fix GetSession

* Close Elastic search when err isn't nil

* Update elastic_search.go

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2021-11-15 21:16:11 +08:00
..
bleve.go Fix nil checking on typed interface (#17598) 2021-11-15 21:16:11 +08:00
bleve_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
elastic_search.go Fix nil checking on typed interface (#17598) 2021-11-15 21:16:11 +08:00
elastic_search_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
git.go Reduce calls to git cat-file -s (#14682) 2021-02-17 22:32:25 +01:00
indexer.go Fix nil checking on typed interface (#17598) 2021-11-15 21:16:11 +08:00
indexer_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
search.go
wrapped.go