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.
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
..
admin Decouple unit test code from business code (#17623) 3 years ago
dev Refactor routers directory (#15800) 3 years ago
events Move login related structs and functions to models/login (#17093) 3 years ago
explore Move unit into models/unit/ (#17576) 3 years ago
feed Fix mispelling of starred as stared (#17465) 3 years ago
org Move webhook into models/webhook/ (#17579) 3 years ago
repo Correctly handle failed migrations (#17575) 3 years ago
user Remove unnecassary calls to `filepath.Join` (#17608) 3 years ago
base.go Fix nil checking on typed interface (#17598) 3 years ago
goget.go Related refactors to ctx.FormX functions (#16567) 3 years ago
home.go Refactor routers directory (#15800) 3 years ago
metrics.go Refactor routers directory (#15800) 3 years ago
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
swagger_json.go Refactor routers directory (#15800) 3 years ago
web.go Move unit into models/unit/ (#17576) 3 years ago