From e3c4040aa39b7eca1d30015e03811d097cdddc1c Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 18 Jun 2023 21:47:26 -0400 Subject: [PATCH] use helper function --- activity.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/activity.go b/activity.go index 2421a61..642b56b 100644 --- a/activity.go +++ b/activity.go @@ -1627,10 +1627,8 @@ var oldjonkers = cache.New(cache.Options{Filler: func(name string) ([]byte, bool if err != nil { return nil, false } - var buf bytes.Buffer j := junkuser(user) - j.Write(&buf) - return buf.Bytes(), true + return buf.ToBytes(), true }, Duration: 1 * time.Minute}) func asjonker(name string) ([]byte, bool) {