From d7acf06fbac46feb5500ead790872a785e3b3185 Mon Sep 17 00:00:00 2001 From: Ghost Date: Sat, 23 Mar 2024 16:51:37 +0800 Subject: [PATCH] chroe: gofmt modifies the code format --- context_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context_test.go b/context_test.go index 68c1dd2e..5149db36 100644 --- a/context_test.go +++ b/context_test.go @@ -2017,7 +2017,7 @@ func TestContextShouldBindBodyWithJSON(t *testing.T) { } objJSON := typeJSON{} - if tt.bindingBody == binding.JSON{ + if tt.bindingBody == binding.JSON { assert.NoError(t, c.ShouldBindBodyWithJSON(&objJSON)) assert.Equal(t, typeJSON{"FOO"}, objJSON) } @@ -2091,7 +2091,7 @@ func TestContextShouldBindBodyWithXML(t *testing.T) { assert.Equal(t, typeXML{"FOO"}, objXML) } - if tt.bindingBody == binding.YAML{ + if tt.bindingBody == binding.YAML { assert.Error(t, c.ShouldBindBodyWithXML(&objXML)) assert.Equal(t, typeXML{}, objXML) }