We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39c3fc5 commit bfa19b5Copy full SHA for bfa19b5
instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace_test.go
@@ -443,12 +443,11 @@ func TestTemporaryFormFileRemove(t *testing.T) {
443
router.Use(otelgin.Middleware("foobar", otelgin.WithTracerProvider(provider)))
444
var fileHeader *multipart.FileHeader
445
router.POST("/upload", func(c *gin.Context) {
446
- ff, err := c.FormFile("file")
+ _, err := c.FormFile("file")
447
if err != nil {
448
_ = c.AbortWithError(http.StatusInternalServerError, err)
449
return
450
}
451
- _ = ff
452
fileHeader = c.Request.MultipartForm.File["file"][0]
453
_, err = fileHeader.Open()
454
require.NoError(t, err)
0 commit comments