Skip to content

Commit

Permalink
internal/copyright: close files
Browse files Browse the repository at this point in the history
Fixes golang#70507

Change-Id: I2ab1f221ebd45fedc70d1fded29b084147eadd28
Reviewed-on: https://go-review.googlesource.com/c/go/+/630815
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
Reviewed-by: Tim King <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
  • Loading branch information
ianlancetaylor authored and gopherbot committed Nov 21, 2024
1 parent 66abc55 commit a276c81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/internal/copyright/copyright_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func TestCopyright(t *testing.T) {
t.Error(err)
return nil
}
defer f.Close()
n, err := f.Read(buf)
if err != nil && err != io.EOF {
t.Error(err)
Expand Down

0 comments on commit a276c81

Please sign in to comment.