fix conflicts

This commit is contained in:
Evgeniy Kulikov 2021-02-12 15:24:52 +03:00
parent cbaf9e6142
commit a428a0b1b3
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2
4 changed files with 52 additions and 7 deletions

View file

@ -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()))
}