Skip to content

Commit b0f44d5

Browse files
committed
copyright: limit copyright checking to .go files
The existing code looked at any file ending 'go' including, for instance, default.pgo. Change-Id: I9a8344d2e23da351ca13a888a367457537e5c1b1 Reviewed-on: https://go-review.googlesource.com/c/tools/+/622895 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent 73d6794 commit b0f44d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: copyright/copyright.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ license that can be found in the LICENSE file.`)
5252

5353
func checkFile(toolsDir, filename string) (bool, error) {
5454
// Only check Go files.
55-
if !strings.HasSuffix(filename, "go") {
55+
if !strings.HasSuffix(filename, ".go") {
5656
return false, nil
5757
}
5858
// Don't check testdata files.

0 commit comments

Comments
 (0)