1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Merge pull request #1656 from imxyb/remove-defer

remove useless defer for Context.FormFile
This commit is contained in:
Roland Lammel 2020-11-20 12:43:26 +01:00 committed by GitHub
commit 9676696b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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