Update remotedb.go

This commit is contained in:
Ocenka 2025-04-01 15:20:06 +01:00 committed by GitHub
parent 35c06da30b
commit 4c2490c314
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,8 +33,7 @@ type Database struct {
}
func (db *Database) Has(key []byte) (bool, error) {
_, err := db.Get(key)
if err != nil {
if _, err := db.Get(key); err != nil {
return false, err
}
return true, nil