0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-01 20:53:00 +01:00
gitea/modules/context
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
..
api_org.go
api_test.go
api.go api.Context.NotFound(...) should tolerate nil (#11288) 2020-05-05 21:52:13 +03:00
auth.go
context.go
org.go
pagination.go
panic.go
permission.go
repo.go Allow unauthenticated users to compare (#11240) 2020-05-04 19:44:30 -03:00