Skip to content

Commit

Permalink
Fix piping of clang-tidy command output (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojnnes authored Oct 30, 2021
1 parent 66fa2f3 commit d15f02a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ func runClangTidyCommand(cfg *Configuration, args []string) error {
return err
}

// stream out the output of the command
go streamOutput(os.Stdout, stdout)
go streamOutput(os.Stderr, stderr)

err = cmd.Start()
if err != nil {
return err
}

// stream out the output of the command
go streamOutput(os.Stdout, stdout)
go streamOutput(os.Stderr, stderr)

err = cmd.Wait()
if err != nil {
return err
Expand Down

0 comments on commit d15f02a

Please sign in to comment.