libnetwork: remove unused ErrNoContainer

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-07-29 01:51:03 +02:00
parent 99ab11bb90
commit eadaaa7f79
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
2 changed files with 1 additions and 12 deletions

View file

@ -25,17 +25,6 @@ func (nse ErrNoSuchEndpoint) Error() string {
// NotFound denotes the type of this error
func (nse ErrNoSuchEndpoint) NotFound() {}
// ErrNoContainer is returned when the endpoint has no container
// attached to it.
type ErrNoContainer struct{}
func (nc ErrNoContainer) Error() string {
return "no container is attached to the endpoint"
}
// Maskable denotes the type of this error
func (nc ErrNoContainer) Maskable() {}
// ErrInvalidID is returned when a query-by-id method is being invoked
// with an empty id parameter
type ErrInvalidID string

View file

@ -16,7 +16,7 @@ func TestErrorInterfaces(t *testing.T) {
}
}
maskableErrorList := []error{ErrNoContainer{}}
maskableErrorList := []error{ManagerRedirectError("")}
for _, err := range maskableErrorList {
switch u := err.(type) {
case types.MaskableError: