Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent NPE if gitea uploader fails to open url (go-gitea#18080)
If http.Get() returns an error return nil and err before attempting to use the broken file. Thanks to walker xiong for spotting this bug. Signed-off-by: Andrew Thornton <art27@cantab.net>
- Loading branch information