aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgoogle-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>2026-02-18 03:25:22 +0000
committergoogle-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>2026-02-18 03:25:22 +0000
commit7dee08f9897ab467bff8d89790eaadd48ebd5fa6 (patch)
tree00b1bb6e0d4e7977df6f2fe531a9c7388e217368
parent1b5be554a97322c7b84f983fac05632909065d85 (diff)
downloadneko-7dee08f9897ab467bff8d89790eaadd48ebd5fa6.tar.gz
neko-7dee08f9897ab467bff8d89790eaadd48ebd5fa6.tar.bz2
neko-7dee08f9897ab467bff8d89790eaadd48ebd5fa6.zip
Fix staticcheck QF1012 in benchmarks
Co-authored-by: adammathes <868470+adammathes@users.noreply.github.com>
-rw-r--r--models/item/item_bench_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/item/item_bench_test.go b/models/item/item_bench_test.go
index b904c32..ba674c7 100644
--- a/models/item/item_bench_test.go
+++ b/models/item/item_bench_test.go
@@ -200,10 +200,10 @@ func BenchmarkFilter_LargeDataset(b *testing.B) {
if i > 0 {
sb.WriteString(",")
}
- sb.WriteString(fmt.Sprintf(
+ fmt.Fprintf(&sb,
"('Item %d', 'https://example.com/large/%d', '<p>Description %d</p>', datetime('now'), %d, 0, 0)",
i, i, i, feedID,
- ))
+ )
}
_, err := models.DB.Exec(
"INSERT INTO item(title, url, description, publish_date, feed_id, read_state, starred) VALUES " + sb.String(),