mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-16 10:57:49 +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
|
||
|---|---|---|
| .. | ||
| build.go | ||
| build_test.go | ||
| build_unix.go | ||
| build_windows.go | ||
| diff.go | ||
| images.go | ||
| pull.go | ||
| push.go | ||
| rm.go | ||
| types.go | ||
| types_diff_options.go | ||
| types_exists_options.go | ||
| types_export_options.go | ||
| types_get_options.go | ||
| types_history_options.go | ||
| types_import_options.go | ||
| types_list_options.go | ||
| types_load_options.go | ||
| types_prune_options.go | ||
| types_pull_options.go | ||
| types_push_options.go | ||
| types_remove_options.go | ||
| types_scp_options.go | ||
| types_search_options.go | ||
| types_tag_options.go | ||
| types_tree_options.go | ||
| types_untag_options.go | ||