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:
parent
151ed6b3f1
commit
42271822e4
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user