From a719f9a03e4ed60ddba3c6a66bf4351cae9a84c3 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 26 Nov 2019 00:42:32 -0500 Subject: [PATCH] fix another case of bad err shadowing --- activity.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activity.go b/activity.go index 9597525..e62a050 100644 --- a/activity.go +++ b/activity.go @@ -288,7 +288,8 @@ var boxofboxes = cache.New(cache.Options{Filler: func(ident string) (*Box, bool) err := row.Scan(&info) if err != nil { log.Printf("need to get boxes for %s", ident) - j, err := GetJunk(ident) + var j junk.Junk + j, err = GetJunk(ident) if err != nil { log.Printf("error getting boxes: %s", err) return nil, false