aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/pull_review.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/pull_review.go')
-rw-r--r--routers/web/repo/pull_review.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/pull_review.go b/routers/web/repo/pull_review.go
index c2271750c4..3e433dcf4d 100644
--- a/routers/web/repo/pull_review.go
+++ b/routers/web/repo/pull_review.go
@@ -259,8 +259,8 @@ type viewedFilesUpdate struct {
func UpdateViewedFiles(ctx *context.Context) {
// Find corresponding PR
- issue := checkPullInfo(ctx)
- if ctx.Written() {
+ issue, ok := getPullInfo(ctx)
+ if !ok {
return
}
pull := issue.PullRequest