From f2c42c358115479c5433b4937ce4af5511ea6213 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Fri, 1 Sep 2023 21:57:00 +0800 Subject: [PATCH] chore: unnecessary use of fmt.Sprintf --- api/agent/agent_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/agent/agent_test.go b/api/agent/agent_test.go index ccd01c610a..bda32033ca 100644 --- a/api/agent/agent_test.go +++ b/api/agent/agent_test.go @@ -308,7 +308,7 @@ func TestLoggerTooBig(t *testing.T) { var call models.Call logger := setupLogger(context.Background(), 10, true, &call) - str := fmt.Sprintf("0 line\n1 l\n-----max log size 10 bytes exceeded, truncating log-----\n") + str := "0 line\n1 l\n-----max log size 10 bytes exceeded, truncating log-----\n" n, err := logger.Write([]byte(str)) if err != nil {