We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d84592 commit 2079a7cCopy full SHA for 2079a7c
tools/cli/internal/cli/split/split.go
@@ -103,11 +103,7 @@ func (o *Opts) PreRunE(_ []string) error {
103
return fmt.Errorf("output file must be either a JSON or YAML file, got %s", o.outputPath)
104
}
105
106
- if err := openapi.ValidateFormat(o.format); err != nil {
107
- return err
108
- }
109
-
110
- return nil
+ return openapi.ValidateFormat(o.format)
111
112
113
// Builder builds the split command with the following signature:
0 commit comments