Skip to content

Commit

Permalink
docs/generate: remove uses of pkg/errors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
thaJeztah committed Feb 1, 2025
1 parent bdd70c1 commit 101862c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
package main

import (
"errors"
"log"
"os"

clidocstool "github.com/docker/cli-docs-tool"
"github.com/docker/cli/cli"
"github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/commands"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
Expand Down Expand Up @@ -65,7 +65,7 @@ func gen(opts *options) error {
return err
}
default:
return errors.Errorf("unknown format %q", format)
return errors.New("unknown format: " + format)
}
}

Expand Down

0 comments on commit 101862c

Please sign in to comment.