Eng Zer Jun 867faa1924
etcdserver: remove redundant len check in health check
From the Go specification [1]:

  "1. For a nil slice, the number of iterations is 0."

`len` returns 0 if the slice or map is nil [2]. Therefore, checking
`len(v) > 0` around a loop is unnecessary.

[1]: https://go.dev/ref/spec#For_range
[2]: https://pkg.go.dev/builtin#len

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-10-13 18:39:38 +08:00
..
2023-09-21 21:14:09 +08:00
2022-01-25 15:24:13 +01:00
2022-11-17 19:07:04 +03:00
2023-09-19 20:24:01 +08:00
2023-09-21 21:14:09 +08:00