containerd/remotes
Eng Zer Jun 34def8b33b
Remove redundant nil check
From the Go docs:

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

Both `info.RootFS` and `host.clientPairs` are slices. Therefore, an
additional nil check for before the loop is unnecessary.

[1]: https://go.dev/ref/spec#For_range

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-08-27 17:56:27 +08:00
..
docker Remove redundant nil check 2023-08-27 17:56:27 +08:00
errors Improve ErrUnexpectedStatus default string 2022-03-07 09:46:25 +01:00
handlers_test.go go.mod: github.com/opencontainers/image-spec v1.1.0-rc3 2023-05-09 23:35:58 +09:00
handlers.go fix-push-image-rate 2023-06-15 19:08:03 +00:00
resolver.go remotes: allow FetchByDigest client to pass mediatype as header 2023-06-27 16:36:01 +08:00