mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
swarm/storage: fixed linter error
This commit is contained in:
parent
ac0bbe7755
commit
2f90b4db8b
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue