Browse Source

Use assignment shorthand

Co-authored-by: Kegsay <kegsay@gmail.com>
pull/337/head
iinuwa 4 years ago
committed by GitHub
parent
commit
b488901a6d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      services/github/webhook/webhook.go

2
services/github/webhook/webhook.go

@ -156,7 +156,7 @@ func pullRequestHTMLMessage(p github.PullRequestEvent) string {
actionTarget = fmt.Sprintf(" to %s", *p.PullRequest.Assignee.Login)
}
var prAction = *p.Action
prAction := *p.Action
if prAction == "closed" && *p.PullRequest.Merged {
prAction = "merged"
}

Loading…
Cancel
Save