Skip to content

Commit 2f79598

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 ecfdf74 commit 2f79598

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
@@ -5,14 +5,14 @@
55
package main
66

77
import (
8+
"errors"
89
"log"
910
"os"
1011

1112
clidocstool "github.com/docker/cli-docs-tool"
1213
"github.com/docker/cli/cli"
1314
"github.com/docker/cli/cli/command"
1415
"github.com/docker/cli/cli/command/commands"
15-
"github.com/pkg/errors"
1616
"github.com/spf13/cobra"
1717
"github.com/spf13/pflag"
1818
)
@@ -64,7 +64,7 @@ func gen(opts *options) error {
6464
return err
6565
}
6666
default:
67-
return errors.Errorf("unknown format %q", format)
67+
return errors.New("unknown format: " + format)
6868
}
6969
}
7070

0 commit comments

Comments
 (0)