1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-03 19:11:23 +02:00
gitea/modules
zeripath d9de58beee
api.Context.NotFound(...) should tolerate nil (#11288)
There is an unfortunate signature change with the api.Context
NotFound function; whereas the normal modules/context/Context
NotFound function requires an error or nil, the api.Context
variant will panic with an NPE if a nil is provided.

This PR will allow api.Context.NotFound to tolerate a being
passed a nil.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-05-05 21:52:13 +03:00
..
analyze
auth
avatar
base
cache
charset
context api.Context.NotFound(...) should tolerate nil (#11288) 2020-05-05 21:52:13 +03:00
convert
cron
emoji
generate
git
gitgraph
graceful
highlight
httplib
indexer
lfs
log
markup
metrics
migrations
notification
options
password
pprof
private
process
public
queue
recaptcha
references
repofiles
repository
secret
session
setting
ssh
structs
sync
task
templates
test
timeutil
upload
user
util
validation
webhook