Skip to content

Commit

Permalink
Merge pull request #1 from mdm-code/fix-double-output
Browse files Browse the repository at this point in the history
Ignore output of duct argument command
  • Loading branch information
mdm-code authored Aug 23, 2023
2 parents cb32321 + ba9ce16 commit 8a9b176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/duct/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func run() int {
args = append(args, os.Args[2:]...)
}
args = append(args, f.Name())
cmd := duct.Cmd(os.Args[1], os.Stdout, duct.Discard, args...)
cmd := duct.Cmd(os.Args[1], duct.Discard, duct.Discard, args...)
err = duct.Wrap(cmd, fds)
if err != nil {
fmt.Fprintf(os.Stderr, "failed to reformat the file: %s", err)
Expand Down

0 comments on commit 8a9b176

Please sign in to comment.