1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00

remove unless defer

This commit is contained in:
yonbiaoxiao 2020-10-20 11:54:40 +08:00
parent 151ed6b3f1
commit 42271822e4

View File

@ -361,7 +361,7 @@ func (c *context) FormFile(name string) (*multipart.FileHeader, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
defer f.Close() f.Close()
return fh, nil return fh, nil
} }