mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-15 11:57:59 +00:00
publish: check if storage exists
This commit is contained in:
+1
-1
@@ -230,7 +230,7 @@ func apiFilesUploadOne(c *gin.Context) {
|
||||
AbortWithJSONError(c, 500, err)
|
||||
return
|
||||
}
|
||||
defer dst.Close()
|
||||
defer func() { _ = dst.Close() }()
|
||||
|
||||
if _, err = io.Copy(dst, c.Request.Body); err != nil {
|
||||
AbortWithJSONError(c, 500, err)
|
||||
|
||||
Reference in New Issue
Block a user