File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2022 The Go Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style
3
+ // license that can be found in the LICENSE file.
4
+
1
5
//go:build !windows
2
6
// +build !windows
3
7
Original file line number Diff line number Diff line change
1
+ // Copyright 2021 The Go Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style
3
+ // license that can be found in the LICENSE file.
4
+
1
5
// Binary installtools is a helper that installs Go tools extension tests depend on.
2
6
package main
3
7
Original file line number Diff line number Diff line change
1
+ // Copyright 2021 The Go Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style
3
+ // license that can be found in the LICENSE file.
4
+
1
5
// Binary installtools is a helper that installs Go tools extension tests depend on.
2
6
package main
3
7
Original file line number Diff line number Diff line change @@ -278,16 +278,6 @@ func mdPrintReleaseComments(changes []*generic.Changelist) {
278
278
}
279
279
}
280
280
281
- // clPackage returns the package name from the CL's commit message,
282
- // or "??" if it's formatted unconventionally.
283
- func clPackage (cl * maintner.GerritCL ) string {
284
- subj := cl .Subject ()
285
- if i := strings .Index (subj , ":" ); i != - 1 {
286
- return subj [:i ]
287
- }
288
- return "??"
289
- }
290
-
291
281
var relNoteRx = regexp .MustCompile (`RELNOTES?=(.+)` )
292
282
293
283
func parseRelNote (s string ) string {
@@ -314,7 +304,7 @@ func mdPrintContributors(cls map[*maintner.GerritCL]bool) {
314
304
for changelist := range cls {
315
305
author , err := fetchCLAuthorName (changelist , * project )
316
306
if err != nil {
317
- log .Fatal ("Error fetching Github information for %s: %v\n " , changelist .Owner (), err )
307
+ log .Fatalf ("Error fetching Github information for %s: %v\n " , changelist .Owner (), err )
318
308
}
319
309
usernames = append (usernames , author )
320
310
}
@@ -390,7 +380,7 @@ func unique(input []string) []string {
390
380
m [entry ] = true
391
381
}
392
382
var list []string
393
- for key , _ := range m {
383
+ for key := range m {
394
384
list = append (list , key )
395
385
}
396
386
sort .Strings (list )
You can’t perform that action at this time.
0 commit comments