From 0f14b92bce885a2622a1cdbaa2500ce898995cbf Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 18 Nov 2017 00:38:46 -0500 Subject: MISC: minor fixes in webhook --- routes/repo/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes/repo/pull.go') diff --git a/routes/repo/pull.go b/routes/repo/pull.go index c6652c7f..71199ee2 100644 --- a/routes/repo/pull.go +++ b/routes/repo/pull.go @@ -275,7 +275,7 @@ func ViewPullCommits(c *context.Context) { if c.Written() { return } else if prInfo == nil { - c.Handle(404, "ViewPullCommits", nil) + c.NotFound() return } commits = prInfo.Commits -- cgit v1.2.3