fix another case of bad err shadowing

This commit is contained in:
Ted Unangst 2019-11-26 00:42:32 -05:00
parent a8126b4c26
commit a719f9a03e
1 changed files with 2 additions and 1 deletions

View File

@ -288,7 +288,8 @@ var boxofboxes = cache.New(cache.Options{Filler: func(ident string) (*Box, bool)
err := row.Scan(&info) err := row.Scan(&info)
if err != nil { if err != nil {
log.Printf("need to get boxes for %s", ident) log.Printf("need to get boxes for %s", ident)
j, err := GetJunk(ident) var j junk.Junk
j, err = GetJunk(ident)
if err != nil { if err != nil {
log.Printf("error getting boxes: %s", err) log.Printf("error getting boxes: %s", err)
return nil, false return nil, false