Fix broken --output-file (#620)

Fixes the broken write to output file option, --output-file.
This commit is contained in:
Michael Patrick
2023-05-19 06:05:16 -04:00
committed by GitHub
parent f7c8c5223c
commit 832c928020

View File

@@ -22,7 +22,7 @@ func sanitizeFile(opts *cliOptions) error {
} }
if *opts.SanitizeOutputFile != "" { if *opts.SanitizeOutputFile != "" {
ifh, err = os.Create(*opts.SanitizeOutputFile) ofh, err = os.Create(*opts.SanitizeOutputFile)
if err != nil { if err != nil {
return errors.Wrapf(err, "Cannot create output file %q", *opts.SanitizeOutputFile) return errors.Wrapf(err, "Cannot create output file %q", *opts.SanitizeOutputFile)
} }