Browse Source
Use assignment shorthand
Co-authored-by: Kegsay <kegsay@gmail.com>
pull/337/head
iinuwa
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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" |
|
|
|
} |
|
|
|