From: guoguangwu Date: Fri, 23 Feb 2024 01:07:08 +0000 (+0000) Subject: encoding/xml: remove unnecessary fmt.Sprintf call X-Git-Tag: go1.23rc1~1109 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8b94733bc7c648da47ec312476f22d48785be277;p=gostls13.git encoding/xml: remove unnecessary fmt.Sprintf call Change-Id: Iba6014340d8b697a3a26b35e8d5a702ccf332e10 GitHub-Last-Rev: ef60463c7b98c2bdabe6d04e0f86947b7f395765 GitHub-Pull-Request: golang/go#65872 Reviewed-on: https://go-review.googlesource.com/c/go/+/565841 Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Carlos Amedee --- diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go index 90922f549e..88918d4552 100644 --- a/src/encoding/xml/marshal_test.go +++ b/src/encoding/xml/marshal_test.go @@ -1751,7 +1751,7 @@ var marshalIndentTests = []struct { }, Prefix: "", Indent: "\t", - ExpectXML: fmt.Sprintf("\n\tJames Bond\n"), + ExpectXML: "\n\tJames Bond\n", }, }