gitea/routers/web
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
..
admin Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
dev Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
events Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
explore Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
feed Fix mispelling of starred as stared (#17465) 2021-10-28 15:05:00 +08:00
org Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
repo Correctly handle failed migrations (#17575) 2021-11-13 19:28:50 +08:00
user Remove unnecassary calls to `filepath.Join` (#17608) 2021-11-15 14:02:53 +08:00
base.go Fix nil checking on typed interface (#17598) 2021-11-15 21:16:11 +08:00
goget.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
home.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
metrics.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 2021-09-28 01:38:06 +02:00
swagger_json.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
web.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00