1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-25 00:54:27 +00:00
zeripath 91e6a7f7ea
api.Context.NotFound(...) should tolerate nil (#11288) (#11306)
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 17:48:24 -05:00
..
2019-08-23 12:40:29 -04:00
2019-08-23 12:40:29 -04:00
2019-06-12 15:41:28 -04:00
2019-12-07 23:36:47 -05:00
2018-11-04 22:20:00 -05:00
2019-06-12 15:41:28 -04:00
2019-08-23 12:40:29 -04:00
2019-11-22 08:03:45 +00:00
2019-03-08 11:42:50 -05:00
2019-08-23 12:40:29 -04:00
2019-08-23 12:40:29 -04:00
2019-08-17 13:10:17 +03:00
2019-06-12 15:41:28 -04:00
2020-01-21 17:24:18 -05:00