gitea/routers
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
..
api/v1 Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
common Rename db Engines related functions (#17481) 2021-10-30 22:32:11 +08:00
install Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
private Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
utils just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
web Fix nil checking on typed interface (#17598) 2021-11-15 21:16:11 +08:00
init.go tune sqlite3 message (#17601) 2021-11-09 13:55:24 -05:00