1
0
Fork 0
forgejo/modules
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
..
activitypub
analyze
appstate Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
auth
avatar
base
cache
charset
context Move EmailAddress & UserRedirect into models/user/ (#17607) 2021-11-11 15:03:30 +08:00
convert Add migration from GitBucket (#16767) 2021-11-14 20:11:10 +01:00
cron Move webhook into models/webhook/ (#17579) 2021-11-10 13:13:16 +08:00
csv
doctor
emoji
eventsource
generate
git
gitgraph
graceful
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer Fix nil checking on typed interface (#17598) 2021-11-15 21:16:11 +08:00
json
lfs
log
markup
matchlist
metrics
migrations Add migration from GitBucket (#16767) 2021-11-14 20:11:10 +01:00
nosql
notification Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
options
password
pprof
private
process
proxy
public
queue
recaptcha
references
repofiles Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
repository Remove unnecassary calls to filepath.Join (#17608) 2021-11-15 14:02:53 +08:00
secret
session
setting
ssh
storage
structs Add migration from GitBucket (#16767) 2021-11-14 20:11:10 +01:00
svg
sync
task Correctly handle failed migrations (#17575) 2021-11-13 19:28:50 +08:00
templates
test
timeutil
translation
typesniffer
unittestbridge Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
updatechecker
upload
uri
user
util
validation
web