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 9b0c059 commit f2f5218Copy full SHA for f2f5218
main.go
@@ -341,10 +341,6 @@ func dirsToModuleRootAbs(maindir, modroot string) []string {
341
342
// validateOutputFormat checks if the output file extension matches the expected format
343
func validateOutputFormat(outpath, expectedExt string) error {
344
- if outpath == "" {
345
- return nil // no output file specified
346
- }
347
-
348
actualExt := filepath.Ext(outpath)
349
if actualExt != expectedExt {
350
return fmt.Errorf("output format %s does not match target format %s", actualExt, expectedExt)
0 commit comments