Skip to content

Commit b3b29ee

Browse files
committed
cmd/gopherbot: remove superfluous newline from change URL
Within the auto-assign logic, the change URL was constructed with a newline character at the end. This isn't needed and caused logs to be harder to read as a result. Change-Id: Iecf0a0b5488b89e9150af042691439eb507b1642 Reviewed-on: https://go-review.googlesource.com/c/143457 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent f62b5e0 commit b3b29ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/gopherbot/gopherbot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ func (b *gopherbot) assignReviewersToCLs(ctx context.Context) error {
16501650
return nil
16511651
}
16521652

1653-
changeURL := fmt.Sprintf("https://go-review.googlesource.com/c/%s/+/%d\n", gp.Project(), cl.Number)
1653+
changeURL := fmt.Sprintf("https://go-review.googlesource.com/c/%s/+/%d", gp.Project(), cl.Number)
16541654
log.Printf("No reviewers or cc: %s", changeURL)
16551655
files, err := b.gerrit.ListFiles(ctx, gc.ID(), cl.Commit.Hash.String())
16561656
if err != nil {

0 commit comments

Comments
 (0)