git » spf » commit cd39542

Remove unnecessary fmt.Sprintf

author Alberto Bertogli
2021-09-03 10:14:02 UTC
committer Alberto Bertogli
2021-10-09 10:24:33 UTC
parent 27071c81d9cbadd4b0bf54635f2fa893a1342000

Remove unnecessary fmt.Sprintf

This patch removes an unnecessary fmt.Sprintf, purely to help with
readability.

yml_test.go +1 -1

diff --git a/yml_test.go b/yml_test.go
index 111b8ac..46706f1 100644
--- a/yml_test.go
+++ b/yml_test.go
@@ -82,7 +82,7 @@ func (r Record) String() string {
 	if r.SERVFAIL {
 		return "SERVFAIL"
 	}
-	return fmt.Sprintf("<empty>")
+	return "<empty>"
 }
 
 // String slice with a custom yaml unmarshaller, because the yaml parser can't