Skip to content

Commit

Permalink
Clean up code and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rillig committed Aug 20, 2023
1 parent d8e747b commit 1b2635c
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 @@ -233,7 +233,7 @@ func (g *gobco) findInModule(dir string) (moduleRoot, moduleRel string) {

// prepareTmp copies the source files to the temporary directory.
//
// Some of these files will later be overwritten by gobco.instrumenter.
// Later, gobco.instrumenter will overwrite some of these files.
func (g *gobco) prepareTmp() {
if g.statsFilename != "" {
var err error
Expand Down Expand Up @@ -266,15 +266,15 @@ func (g *gobco) instrument() bool {
nil,
}

any := false
found := false
for _, arg := range g.args {
instrDst := g.file(arg.instrDir)
if in.instrument(arg.argDir, arg.instrFile, instrDst) {
any = true
found = true
g.verbosef("Instrumented %s to %s", arg.arg, instrDst)
}
}
return any
return found
}

func (g *gobco) runGoTest() {
Expand Down

0 comments on commit 1b2635c

Please sign in to comment.