Skip to content

Commit f2f5218

Browse files
author
rdon
committed
Remove empty outpath check in validateOutputFormat
1 parent 9b0c059 commit f2f5218

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,6 @@ func dirsToModuleRootAbs(maindir, modroot string) []string {
341341

342342
// validateOutputFormat checks if the output file extension matches the expected format
343343
func validateOutputFormat(outpath, expectedExt string) error {
344-
if outpath == "" {
345-
return nil // no output file specified
346-
}
347-
348344
actualExt := filepath.Ext(outpath)
349345
if actualExt != expectedExt {
350346
return fmt.Errorf("output format %s does not match target format %s", actualExt, expectedExt)

0 commit comments

Comments
 (0)