mirror of
https://github.com/go-gitea/gitea
synced 2025-01-10 08:35:58 +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
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user