You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
3 years ago
..
api/v1 Decouple unit test code from business code (#17623) 3 years ago
common Rename db Engines related functions (#17481) 3 years ago
install Fix bug on admin subcommand (#17533) 3 years ago
private Move unit into models/unit/ (#17576) 3 years ago
utils just add some unit tests (#16291) 3 years ago
web Fix nil checking on typed interface (#17598) 3 years ago
init.go tune sqlite3 message (#17601) 3 years ago