mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-09 13:36:56 +02:00
In a former commit we respected the error of the Close() call for a HTTP response. The fix was to introduce named return values (e.g. err for error). The problem: We defered the resp.Close() via err = resp.Close() This had the effect of always overwrite the real error that happen when the HTTP call failes (due to checkResponse func).