Skip to content

driver/docker-container: remove uses of dockerclient.IsErrNotFound#2961

Merged
crazy-max merged 1 commit intodocker:masterfrom
thaJeztah:driver_use_errdefs
Feb 3, 2025
Merged

driver/docker-container: remove uses of dockerclient.IsErrNotFound#2961
crazy-max merged 1 commit intodocker:masterfrom
thaJeztah:driver_use_errdefs

Conversation

@thaJeztah
Copy link
Member

It's a wrapper around errdefs.IsNotFound, which is already used, so we can skip the wrapper.

// IsErrNotFound returns true if the error is a NotFound error, which is returned
// by the API when some object is not found. It is an alias for [errdefs.IsNotFound].
func IsErrNotFound(err error) bool {
return errdefs.IsNotFound(err)
}

It's a wrapper around errdefs.IsNotFound, which is already used, so we
can skip the wrapper.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@crazy-max crazy-max merged commit b066ee1 into docker:master Feb 3, 2025
127 checks passed
@thaJeztah thaJeztah deleted the driver_use_errdefs branch February 3, 2025 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants