diff options
| author | zhedazijingang <unwrap_or_else@outlook.com> | 2025-08-31 21:01:35 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-31 22:01:35 +0900 |
| commit | 59dc7f178f9ef6fa1d10bc4e0637a2254c6f3868 (patch) | |
| tree | e0144c1542af61d1ceeae59d961e5e2dbfe07a8a /src | |
| parent | a3c9f8bfee944e5a8b272b8dd1aaed1992c4989d (diff) | |
| download | fzf-59dc7f178f9ef6fa1d10bc4e0637a2254c6f3868.tar.gz | |
refactor: replace []byte(fmt.Sprintf) with fmt.Appendf (#4507)
Signed-off-by: zhedazijingang <unwrap_or_else@outlook.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/chunklist_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chunklist_test.go b/src/chunklist_test.go index 4eff7b94..c3c381f9 100644 --- a/src/chunklist_test.go +++ b/src/chunklist_test.go @@ -52,7 +52,7 @@ func TestChunkList(t *testing.T) { // Add more data for i := 0; i < chunkSize*2; i++ { - cl.Push([]byte(fmt.Sprintf("item %d", i))) + cl.Push(fmt.Appendf(nil, "item %d", i)) } // Previous snapshot should remain the same @@ -86,7 +86,7 @@ func TestChunkListTail(t *testing.T) { }) total := chunkSize*2 + chunkSize/2 for i := 0; i < total; i++ { - cl.Push([]byte(fmt.Sprintf("item %d", i))) + cl.Push(fmt.Appendf(nil, "item %d", i)) } snapshot, count, changed := cl.Snapshot(0) |
