contrib/recipes: fix govet and goword warnings

release-3.0
Anthony Romano 2016-06-17 11:48:10 -07:00
parent 74b13aab61
commit 016be1ef31
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ func (b *DoubleBarrier) Leave() error {
}
// delete self and wait on lowest process
if err := b.myKey.Delete(); err != nil {
if err = b.myKey.Delete(); err != nil {
return err
}

View File

@ -24,7 +24,7 @@ import (
"golang.org/x/net/context"
)
// Key is a key/revision pair created by the client and stored on etcd
// RemoteKV is a key/revision pair created by the client and stored on etcd
type RemoteKV struct {
kv v3.KV
key string