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

hashKV checks nilness of 'eh' and 'es', but doesn't use them. Instead it panics with 'err' which is definitely nil. This should be avoided, See: https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilness#nilpanic This patch renames 'eh' and 'es' to 'err' in order to correct the real errors to panic. Signed-off-by: Jes Cok <xigua67damn@gmail.com>