1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 17:54:27 +00:00
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
..
2021-06-07 07:27:09 +02:00
2021-10-24 22:12:43 +01:00
2021-10-17 20:47:12 +01:00
2021-10-17 20:47:12 +01:00
2020-10-02 23:37:53 -04:00
2021-10-17 20:47:12 +01:00
2021-05-03 13:24:24 -04:00
2021-10-13 22:50:23 -04:00
2021-10-18 21:12:26 +01:00
2020-04-05 07:20:50 +01:00
2021-10-13 22:50:23 -04:00
2021-10-13 22:50:23 -04:00