mirror of
https://github.com/go-gitea/gitea
synced 2025-01-10 12:55:57 +01:00
merge if conditions
This commit is contained in:
parent
30d4010983
commit
66681c33ff
@ -2105,11 +2105,10 @@ func ViewIssue(ctx *context.Context) {
|
|||||||
}
|
}
|
||||||
ctx.Data["DevLinks"] = devLinks
|
ctx.Data["DevLinks"] = devLinks
|
||||||
for _, link := range devLinks {
|
for _, link := range devLinks {
|
||||||
if link.LinkType == issues_model.IssueDevLinkTypePullRequest {
|
if link.LinkType == issues_model.IssueDevLinkTypePullRequest &&
|
||||||
if !(link.PullRequest.Issue.IsClosed && !link.PullRequest.HasMerged) {
|
!(link.PullRequest.Issue.IsClosed && !link.PullRequest.HasMerged) {
|
||||||
ctx.Data["MaybeFixed"] = link.PullRequest
|
ctx.Data["MaybeFixed"] = link.PullRequest
|
||||||
break
|
break
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user