forked from TrueCloudLab/frostfs-http-gw
fix conflicts
This commit is contained in:
parent
cbaf9e6142
commit
a428a0b1b3
4 changed files with 52 additions and 7 deletions
|
@ -55,7 +55,7 @@ func (a *app) upload(c *fasthttp.RequestCtx) {
|
|||
|
||||
defer func() {
|
||||
// if temporary reader can be closed - close it
|
||||
if closer := tmp.(io.Closer); closer != nil {
|
||||
if closer, ok := tmp.(io.Closer); ok && closer != nil {
|
||||
log.Debug("close temporary multipart/form file", zap.Error(closer.Close()))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue