Skip to content

Commit c844268

Browse files
committed
pkg/scrape: Fix scraping without executable info
1 parent 5d44d4d commit c844268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/scrape/scrape.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ mainLoop:
502502
continue
503503
}
504504

505-
executableInfo := []*profilepb.ExecutableInfo{}
505+
var executableInfo []*profilepb.ExecutableInfo
506506
for _, comment := range p.Comments {
507507
if strings.HasPrefix(comment, "executableInfo=") {
508508
ei, err := parseExecutableInfo(comment)

0 commit comments

Comments
 (0)