mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
Update remotedb.go
This commit is contained in:
parent
35c06da30b
commit
4c2490c314
1 changed files with 1 additions and 2 deletions
|
|
@ -33,8 +33,7 @@ type Database struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *Database) Has(key []byte) (bool, error) {
|
func (db *Database) Has(key []byte) (bool, error) {
|
||||||
_, err := db.Get(key)
|
if _, err := db.Get(key); err != nil {
|
||||||
if err != nil {
|
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
return true, nil
|
return true, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue