Skip to content

Commit 1b2635c

Browse files
committed
Clean up code and comment
1 parent d8e747b commit 1b2635c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func (g *gobco) findInModule(dir string) (moduleRoot, moduleRel string) {
233233

234234
// prepareTmp copies the source files to the temporary directory.
235235
//
236-
// Some of these files will later be overwritten by gobco.instrumenter.
236+
// Later, gobco.instrumenter will overwrite some of these files.
237237
func (g *gobco) prepareTmp() {
238238
if g.statsFilename != "" {
239239
var err error
@@ -266,15 +266,15 @@ func (g *gobco) instrument() bool {
266266
nil,
267267
}
268268

269-
any := false
269+
found := false
270270
for _, arg := range g.args {
271271
instrDst := g.file(arg.instrDir)
272272
if in.instrument(arg.argDir, arg.instrFile, instrDst) {
273-
any = true
273+
found = true
274274
g.verbosef("Instrumented %s to %s", arg.arg, instrDst)
275275
}
276276
}
277-
return any
277+
return found
278278
}
279279

280280
func (g *gobco) runGoTest() {

0 commit comments

Comments
 (0)