From 3d58b43efe93d0ef747919b46a7193939b87a3b3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 14 Dec 2022 11:30:54 +0100 Subject: [PATCH] cli: remove unused Errors type Signed-off-by: Sebastiaan van Stijn --- cli/error.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/cli/error.go b/cli/error.go index ea7c0eb506..421929b81d 100644 --- a/cli/error.go +++ b/cli/error.go @@ -2,26 +2,8 @@ package cli // import "github.com/docker/docker/cli" import ( "fmt" - "strings" ) -// Errors is a list of errors. -// Useful in a loop if you don't want to return the error right away and you want to display after the loop, -// all the errors that happened during the loop. -type Errors []error - -func (errList Errors) Error() string { - if len(errList) < 1 { - return "" - } - - out := make([]string, len(errList)) - for i := range errList { - out[i] = errList[i].Error() - } - return strings.Join(out, ", ") -} - // StatusError reports an unsuccessful exit by a command. type StatusError struct { Status string