Skip to content

Commit

Permalink
Use utils.ExecCommand for running ctags
Browse files Browse the repository at this point in the history
This slightly simplifies the code.

Signed-off-by: Matthijs Kooijman <[email protected]>
  • Loading branch information
matthijskooijman committed Nov 30, 2017
1 parent 3e4d344 commit 7f2d410
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/arduino.cc/builder/ctags_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
package builder

import (
"fmt"

"arduino.cc/builder/constants"
"arduino.cc/builder/ctags"
"arduino.cc/builder/i18n"
Expand Down Expand Up @@ -61,12 +59,7 @@ func (s *CTagsRunner) Run(ctx *types.Context) error {
return i18n.WrapError(err)
}

verbose := ctx.Verbose
if verbose {
fmt.Println(commandLine)
}

sourceBytes, err := command.Output()
sourceBytes, _, err := utils.ExecCommand(ctx, command, /* stdout */ utils.Capture, /* stderr */ utils.Ignore)
if err != nil {
return i18n.WrapError(err)
}
Expand Down

0 comments on commit 7f2d410

Please sign in to comment.