encoding/xml: remove unnecessary fmt.Sprintf call

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guoguangwu 2024-02-22 16:28:50 +08:00
parent 7fd62ba821
commit ef60463c7b

View File

@ -1751,7 +1751,7 @@ var marshalIndentTests = []struct {
},
Prefix: "",
Indent: "\t",
ExpectXML: fmt.Sprintf("<agent handle=\"007\">\n\t<Identity>James Bond</Identity><redacted/>\n</agent>"),
ExpectXML: "<agent handle=\"007\">\n\t<Identity>James Bond</Identity><redacted/>\n</agent>",
},
}