From c020cb984b9deb3e9fa7593af2782ae57c7fa149 Mon Sep 17 00:00:00 2001 From: Katy Moe Date: Tue, 21 Jun 2022 14:31:32 +0100 Subject: go fmt --- json/fuzz/fuzz_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'json') diff --git a/json/fuzz/fuzz_test.go b/json/fuzz/fuzz_test.go index bcaa4f4..f77c96b 100644 --- a/json/fuzz/fuzz_test.go +++ b/json/fuzz/fuzz_test.go @@ -7,14 +7,14 @@ import ( ) func FuzzParse(f *testing.F) { -f.Fuzz(func(t *testing.T, data []byte) { - _, diags := json.Parse(data, "") + f.Fuzz(func(t *testing.T, data []byte) { + _, diags := json.Parse(data, "") -if diags.HasErrors() { + if diags.HasErrors() { t.Logf("Error when parsing JSON %v", data) for _, diag := range diags { t.Logf("- %s", diag.Error()) } } -}) + }) } -- cgit v1.2.3