mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
*: go vet fix in go tip
This commit is contained in:
parent
27ef4baa9c
commit
caffcb7fbb
@ -81,7 +81,8 @@ func (s *EtcdServer) Range(ctx context.Context, r *pb.RangeRequest) (*pb.RangeRe
|
||||
var err error
|
||||
|
||||
if r.Serializable {
|
||||
user, err := s.usernameFromCtx(ctx)
|
||||
var user string
|
||||
user, err = s.usernameFromCtx(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user