aboutsummaryrefslogtreecommitdiff
path: root/routes/repo/pull.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-11-18 00:38:46 -0500
committerUnknwon <u@gogs.io>2017-11-18 00:38:46 -0500
commit0f14b92bce885a2622a1cdbaa2500ce898995cbf (patch)
treecefa9d59834b750ba0f92dc83e95d11f2bdcc3ca /routes/repo/pull.go
parent43d6ad5fda4eb978aeec54b49c5b33a096bb31f4 (diff)
MISC: minor fixes in webhook
Diffstat (limited to 'routes/repo/pull.go')
1 files changed, 1 insertions, 1 deletions
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