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 <bradfitz@golang.org>
diff --git a/cmd/gopherbot/gopherbot.go b/cmd/gopherbot/gopherbot.go
index 6698c7a..d31ce31 100644
--- a/cmd/gopherbot/gopherbot.go
+++ b/cmd/gopherbot/gopherbot.go
@@ -1650,7 +1650,7 @@
return nil
}
- changeURL := fmt.Sprintf("https://go-review.googlesource.com/c/%s/+/%d\n", gp.Project(), cl.Number)
+ changeURL := fmt.Sprintf("https://go-review.googlesource.com/c/%s/+/%d", gp.Project(), cl.Number)
log.Printf("No reviewers or cc: %s", changeURL)
files, err := b.gerrit.ListFiles(ctx, gc.ID(), cl.Commit.Hash.String())
if err != nil {