From 42271822e43f390db71e7df1574e858f5cd1a921 Mon Sep 17 00:00:00 2001 From: yonbiaoxiao Date: Tue, 20 Oct 2020 11:54:40 +0800 Subject: [PATCH] remove unless defer --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 99ef03bc..3bc0bbd9 100644 --- a/context.go +++ b/context.go @@ -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 }