mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/shed: remove named return values from Index.Has
This commit is contained in:
parent
62807b7032
commit
13d15979bb
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ func (f Index) Get(keyFields Item) (out Item, err error) {
|
||||||
// Has accepts key fields represented as Item to check
|
// Has accepts key fields represented as Item to check
|
||||||
// if there this Item's encoded key is stored in
|
// if there this Item's encoded key is stored in
|
||||||
// the index.
|
// the index.
|
||||||
func (f Index) Has(keyFields Item) (yes bool, err error) {
|
func (f Index) Has(keyFields Item) (bool, error) {
|
||||||
key, err := f.encodeKeyFunc(keyFields)
|
key, err := f.encodeKeyFunc(keyFields)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue