tailscale/release
Andrew Lytvynov ce5909dafc
release/dist: remove extra Close on a signed file (#9094)
We pass the file as an io.Reader to http.Post under the hood as request
body. Post, helpfully, detects that the body is an io.Closer and closes
it. So when we try to explicitly close it again, we get "file already
closed" error.

The Close there is not load-bearing, we have a defer for it anyway.
Remove the explicit close and error check.

Updates #cleanup

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
2023-08-25 11:36:39 -07:00
..
deb release: open-source release build logic for unix packages 2023-02-24 21:31:09 +00:00
dist release/dist: remove extra Close on a signed file (#9094) 2023-08-25 11:36:39 -07:00
rpm release: open-source release build logic for unix packages 2023-02-24 21:31:09 +00:00
release.go release: add empty embed.FS for release files 2023-08-23 09:54:10 -07:00