compose/pkg
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
..
api deps: remove deprecated github.com/pkg/errors 2023-09-29 06:28:58 +02:00
compose Merge pull request #11110 from ndeloof/wait_missing 2023-10-19 10:04:32 +02:00
e2e refactor(cmd/compose/run): remove redundant `len` check 2023-10-23 16:06:52 +08:00
mocks add scale command 2023-09-13 11:15:14 +02:00
progress
prompt
remote remove uncessary return value of pullComposeFiles function 2023-10-18 12:42:11 +02:00
utils logs: fix for missing output on container exit (#10925) 2023-08-23 08:57:18 -04:00
watch deps: remove deprecated github.com/pkg/errors 2023-09-29 06:28:58 +02:00