From 8b94733bc7c648da47ec312476f22d48785be277 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Fri, 23 Feb 2024 01:07:08 +0000 Subject: [PATCH] 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 --- src/encoding/xml/marshal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", }, } -- 2.50.0