Skip to content

Commit 62e9f54

Browse files
testwillahjones
authored andcommitted
chore: unnecessary use of fmt.Sprintf
1 parent d705d3c commit 62e9f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/agent/agent_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func TestLoggerTooBig(t *testing.T) {
308308
var call models.Call
309309
logger := setupLogger(context.Background(), 10, true, &call)
310310

311-
str := fmt.Sprintf("0 line\n1 l\n-----max log size 10 bytes exceeded, truncating log-----\n")
311+
str := "0 line\n1 l\n-----max log size 10 bytes exceeded, truncating log-----\n"
312312

313313
n, err := logger.Write([]byte(str))
314314
if err != nil {

0 commit comments

Comments
 (0)