Skip to content

Commit

Permalink
fix: remove dirs duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed Feb 20, 2024
1 parent 18e6c5e commit 61f1290
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/executor/jmeterd/pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,10 @@ func runScraperIfEnabled(ctx context.Context, enabled bool, scraper scraper.Scra
directories := dirs
var masks []string
if execution.ArtifactRequest != nil {
directories = append(directories, execution.ArtifactRequest.Dirs...)
if len(execution.ArtifactRequest.Dirs) != 0 {
directories = execution.ArtifactRequest.Dirs
}

masks = execution.ArtifactRequest.Masks
}

Expand Down

0 comments on commit 61f1290

Please sign in to comment.