mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-25 21:29:14 +02:00
fix: blob upload eating errors (#3185)
closes #2652 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
cc80b0edbf
commit
de9949705d
@ -232,11 +232,9 @@ func (u *productionUploader) Upload(ctx *context.Context, filepath string, data
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer func() {
|
||||
if cerr := w.Close(); err == nil {
|
||||
err = cerr
|
||||
}
|
||||
}()
|
||||
_, err = w.Write(data)
|
||||
return err
|
||||
defer func() { _ = w.Close() }()
|
||||
if _, err = w.Write(data); err != nil {
|
||||
return err
|
||||
}
|
||||
return w.Close()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user