compose/pkg/e2e
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
..
fixtures refactor(cmd/compose/run): remove redundant `len` check 2023-10-23 16:06:52 +08:00
assert.go
build_test.go
cancel_test.go
compose_environment_test.go add support of COMPOSE_ENV_FILES env variable to pass a list of env files 2023-10-05 21:55:43 +02:00
compose_exec_test.go
compose_run_test.go refactor(cmd/compose/run): remove redundant `len` check 2023-10-23 16:06:52 +08:00
compose_test.go
compose_up_test.go
cp_test.go
ddev_test.go
e2e_config_plugin.go
e2e_config_standalone.go
framework.go deps: remove deprecated github.com/pkg/errors 2023-09-29 06:28:58 +02:00
ipc_test.go
logs_test.go
main_test.go
metrics_test.go
networks_test.go
noDeps_test.go resolve service reference into container based on observed state 2023-09-14 15:29:50 +02:00
pause_test.go deps: remove deprecated github.com/pkg/errors 2023-09-29 06:28:58 +02:00
profiles_test.go
ps_test.go
pull_test.go
recreate_no_deps_test.go
restart_test.go
scale_test.go
secrets_test.go
start_stop_test.go
up_test.go deps: remove deprecated github.com/pkg/errors 2023-09-29 06:28:58 +02:00
volumes_test.go
wait_test.go
watch_test.go add sync+restart action to watch attribute 2023-10-18 12:11:02 +02:00