mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 09:34:33 +08:00
fix code lint
This commit is contained in:
parent
9b524ca5d6
commit
0686554bcd
@ -565,7 +565,6 @@ func createFormFilesMultipartRequest(t *testing.T) *http.Request {
|
|||||||
defer f.Close()
|
defer f.Close()
|
||||||
fw, err1 := mw.CreateFormFile("file", "form.go")
|
fw, err1 := mw.CreateFormFile("file", "form.go")
|
||||||
assert.NoError(t, err1)
|
assert.NoError(t, err1)
|
||||||
|
|
||||||
io.Copy(fw, f)
|
io.Copy(fw, f)
|
||||||
|
|
||||||
req, err2 := http.NewRequest("POST", "/?foo=getfoo&bar=getbar", body)
|
req, err2 := http.NewRequest("POST", "/?foo=getfoo&bar=getbar", body)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user