mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Hash method returns either (nil, err) or (Hash, nil). The current error checking is wrong. It only needs to check the error is either nil or non-nil. This causes panic in https://github.com/coreos/etcd/issues/4463 by allowing the case when resp is nil, but err is not nil.