compose/pkg/e2e/fixtures/run-test
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
..
compose.yaml Move compose e2e tests into pkg 2021-06-28 08:47:58 +02:00
deps.yaml Only start direct dependencies of service on `compose run ...` 2022-06-14 07:32:15 +02:00
orphan.yaml Support COMPOSE_IGNORE_ORPHANS for compose run 2022-03-05 22:54:16 +01:00
ports.yaml refactor(cmd/compose/run): remove redundant `len` check 2023-10-23 16:06:52 +08:00