mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-29 21:47:01 +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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() { _ = w.Close() }()
|
||||||
if cerr := w.Close(); err == nil {
|
if _, err = w.Write(data); err != nil {
|
||||||
err = cerr
|
return err
|
||||||
}
|
}
|
||||||
}()
|
return w.Close()
|
||||||
_, err = w.Write(data)
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user