Skip to content

Commit 101862c

Browse files
committed
docs/generate: remove uses of pkg/errors
While there may be reasons to keep pkg/errors in production code, we don't need them for this generator code. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent bdd70c1 commit 101862c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/generate/generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
package main
77

88
import (
9+
"errors"
910
"log"
1011
"os"
1112

1213
clidocstool "github.com/docker/cli-docs-tool"
1314
"github.com/docker/cli/cli"
1415
"github.com/docker/cli/cli/command"
1516
"github.com/docker/cli/cli/command/commands"
16-
"github.com/pkg/errors"
1717
"github.com/spf13/cobra"
1818
"github.com/spf13/pflag"
1919
)
@@ -65,7 +65,7 @@ func gen(opts *options) error {
6565
return err
6666
}
6767
default:
68-
return errors.Errorf("unknown format %q", format)
68+
return errors.New("unknown format: " + format)
6969
}
7070
}
7171

0 commit comments

Comments
 (0)