swarm/shed: remove named return values from Index.Has

This commit is contained in:
Janos Guljas 2019-03-06 12:48:48 +01:00
parent 62807b7032
commit 13d15979bb

View file

@ -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