swarm/storage: bug fix

This commit is contained in:
Fabio Barone 2019-02-05 21:59:24 -05:00
parent 2f90b4db8b
commit 461d16903f

View file

@ -978,7 +978,7 @@ 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)
return err != nil return err == nil
} }
// 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