Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Jul 21, 2020
1 parent 798e052 commit cb0ab4e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions service/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ func (g *GitHubPullRequest) postAsReviewComment(ctx context.Context) error {
continue
}
cbody := commentutil.CommentBody(c)
suggestion := buildSuggestions(c)
if suggestion != "" {
if suggestion := buildSuggestions(c); suggestion != "" {
cbody += "\n" + suggestion
}
comments = append(comments, &github.DraftReviewComment{
Expand Down

0 comments on commit cb0ab4e

Please sign in to comment.