We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d4010 commit 66681c3Copy full SHA for 66681c3
routers/web/repo/issue.go
@@ -2105,11 +2105,10 @@ func ViewIssue(ctx *context.Context) {
2105
}
2106
ctx.Data["DevLinks"] = devLinks
2107
for _, link := range devLinks {
2108
- if link.LinkType == issues_model.IssueDevLinkTypePullRequest {
2109
- if !(link.PullRequest.Issue.IsClosed && !link.PullRequest.HasMerged) {
2110
- ctx.Data["MaybeFixed"] = link.PullRequest
2111
- break
2112
- }
+ if link.LinkType == issues_model.IssueDevLinkTypePullRequest &&
+ !(link.PullRequest.Issue.IsClosed && !link.PullRequest.HasMerged) {
+ ctx.Data["MaybeFixed"] = link.PullRequest
+ break
2113
2114
2115
0 commit comments