From 016be1ef3120a9566af5f863676d52197ff39295 Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Fri, 17 Jun 2016 11:48:10 -0700 Subject: [PATCH] contrib/recipes: fix govet and goword warnings --- contrib/recipes/double_barrier.go | 2 +- contrib/recipes/key.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/recipes/double_barrier.go b/contrib/recipes/double_barrier.go index 3ab3d2494..54168a4b7 100644 --- a/contrib/recipes/double_barrier.go +++ b/contrib/recipes/double_barrier.go @@ -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 } diff --git a/contrib/recipes/key.go b/contrib/recipes/key.go index 4ad4c6872..ba6303086 100644 --- a/contrib/recipes/key.go +++ b/contrib/recipes/key.go @@ -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