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-25 19:37:18 +08:00
2023-09-19 22:19:19 +08:00
2023-09-17 17:41:58 +08:00
2023-10-12 16:59:34 -07:00
2023-09-21 21:14:09 +08:00
2023-10-11 10:39:05 -04:00
2023-10-11 10:39:05 -04:00
2020-10-26 13:02:32 +01:00
2023-09-17 23:52:41 +08:00