fix another case of bad err shadowing
This commit is contained in:
parent
a8126b4c26
commit
a719f9a03e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue