1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Formatted TestCreateFormFile()

This commit is contained in:
JanHoefelmeyer 2023-09-25 11:31:22 +02:00
parent 3de42e746d
commit 1f7d5ada14

View file

@ -20,8 +20,7 @@ func TestCreateFormFile(t *testing.T) {
body := new(bytes.Buffer)
writer := multipart.NewWriter(body)
_, err := CreateFormFile(writer, "csaf", "data", "application/json")
if err != nil {
t.Errorf("failed to create an io.Writer via CreateFormFile")
if _, err := CreateFormFile(writer, "csaf", "data", "application/json"); err != nil {
t.Errorf("Failure: failed to create an io.Writer via CreateFormFile")
}
}