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)
|
||||
_, err := s.db.Get(ikey)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
return err != nil
|
||||
}
|
||||
|
||||
// TODO: To conform with other private methods of this object indices should not be updated
|
||||
|
|
|
|||
Loading…
Reference in a new issue