compose/cmd
Eng Zer Jun 6c345b3755
refactor(cmd/compose/run): remove redundant `len` check
From the Go specification [1]:

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

`len` returns 0 if the slice is nil [2]. Therefore, checking
`len(v) > 0` before 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-23 16:06:52 +08:00
..
cmdtrace otel: add args & flags to cli traces (#10974) 2023-09-07 16:04:36 -04:00
compatibility don't skip `compose` used as project name 2023-06-06 10:24:59 +02:00
compose refactor(cmd/compose/run): remove redundant `len` check 2023-10-23 16:06:52 +08:00
formatter deps: remove deprecated github.com/pkg/errors 2023-09-29 06:28:58 +02:00
main.go otel: add args & flags to cli traces (#10974) 2023-09-07 16:04:36 -04:00