lint: err shadow

This commit is contained in:
Umputun
2018-02-05 11:25:04 -06:00
parent f448af5e0c
commit 7bf0f6864e
+3 -3
View File
@@ -325,9 +325,9 @@ func (b *BoltDB) Blocked(siteID string) (users []BlockedUser, err error) {
return nil
}
return bucket.ForEach(func(k []byte, v []byte) error {
ts, err := time.ParseInLocation(time.RFC3339Nano, string(v), time.Local)
if err != nil {
return errors.Wrap(err, "can't parse block ts")
ts, e := time.ParseInLocation(time.RFC3339Nano, string(v), time.Local)
if e != nil {
return errors.Wrap(e, "can't parse block ts")
}
users = append(users, BlockedUser{ID: string(k), Timestamp: ts})
return nil