1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +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 {
return nil, err
}
defer f.Close()
f.Close()
return fh, nil
}