Skip to content

Commit 2079a7c

Browse files
committed
lint
1 parent 3d84592 commit 2079a7c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tools/cli/internal/cli/split/split.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,7 @@ func (o *Opts) PreRunE(_ []string) error {
103103
return fmt.Errorf("output file must be either a JSON or YAML file, got %s", o.outputPath)
104104
}
105105

106-
if err := openapi.ValidateFormat(o.format); err != nil {
107-
return err
108-
}
109-
110-
return nil
106+
return openapi.ValidateFormat(o.format)
111107
}
112108

113109
// Builder builds the split command with the following signature:

0 commit comments

Comments
 (0)