diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 47949635370..43ac971a2a1 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -2105,11 +2105,10 @@ func ViewIssue(ctx *context.Context) { } ctx.Data["DevLinks"] = devLinks for _, link := range devLinks { - if link.LinkType == issues_model.IssueDevLinkTypePullRequest { - if !(link.PullRequest.Issue.IsClosed && !link.PullRequest.HasMerged) { - ctx.Data["MaybeFixed"] = link.PullRequest - break - } + if link.LinkType == issues_model.IssueDevLinkTypePullRequest && + !(link.PullRequest.Issue.IsClosed && !link.PullRequest.HasMerged) { + ctx.Data["MaybeFixed"] = link.PullRequest + break } } }