swarm/storage: fixed linter error

This commit is contained in:
Fabio Barone 2019-02-05 21:24:03 -05:00
parent ac0bbe7755
commit 2f90b4db8b

View file

@ -977,10 +977,8 @@ func (s *LDBStore) Has(_ context.Context, addr Address) bool {
ikey := getIndexKey(addr) ikey := getIndexKey(addr)
_, err := s.db.Get(ikey) _, err := s.db.Get(ikey)
if err != nil {
return false return err != nil
}
return true
} }
// TODO: To conform with other private methods of this object indices should not be updated // TODO: To conform with other private methods of this object indices should not be updated