mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-08 01:45:43 +00:00
Using os.Is{Exist,NotExist,Permission} checks is not recommended in the
new code (see official documentation). While using it in the existing
code is OK, it may still result in a subtle errors later (for a specific
example of that, see [1]).
Replace those with errors.Is.
Generated by:
gofmt -r 'os.IsExist(a) -> errors.Is(a, os.ErrExist)' -w .
gofmt -r 'os.IsNotExist(a) -> errors.Is(a, os.ErrNotExist)' -w .
gofmt -r 'os.IsPermission(a) -> errors.Is(a, os.ErrPermission)' -w .
goimports -w .
git diff vendor test/tools/vendor | patch -p1 -R
[1]: https://github.com/opencontainers/runc/pull/5061
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| fixture | ||
| api_response_test.go | ||
| attach_test.go | ||
| auth_test.go | ||
| common_test.go | ||
| connection_test.go | ||
| containers_test.go | ||
| create_test.go | ||
| exec_test.go | ||
| generator_test.go | ||
| images_test.go | ||
| info_test.go | ||
| manifests_test.go | ||
| networks_test.go | ||
| pods_test.go | ||
| resource_test.go | ||
| secrets_test.go | ||
| system_test.go | ||
| test_suite_test.go | ||
| types_test.go | ||
| volumes_test.go | ||