lint: count error return

This commit is contained in:
Umputun
2018-02-18 21:53:00 -06:00
parent 2ddb426ec6
commit 6645855c9f
+2 -5
View File
@@ -266,11 +266,8 @@ func (b *BoltDB) Count(locator Locator) (count int, err error) {
err = bdb.View(func(tx *bolt.Tx) error {
var e error
count, err = b.count(tx, locator.URL, 0)
if e != nil {
return e
}
return nil
count, e = b.count(tx, locator.URL, 0)
return e
})
return count, err