Skip to content

Commit

Permalink
Move scanner pool assignment in refresh functions
Browse files Browse the repository at this point in the history
Signed-off-by: egibs <[email protected]>
  • Loading branch information
egibs committed Jan 3, 2025
1 parent a82d52e commit d3d639a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions pkg/refresh/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ func actionRefresh(ctx context.Context) ([]TestData, error) {
if err != nil {
return nil, err
}
c.ScannerPool = pool
}

c.ScannerPool = pool

testData = append(testData, TestData{
Config: c,
OutputPath: output,
Expand Down
3 changes: 1 addition & 2 deletions pkg/refresh/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,9 @@ func diffRefresh(ctx context.Context, rc Config) ([]TestData, error) {
if err != nil {
return nil, err
}
c.ScannerPool = pool
}

c.ScannerPool = pool

testData = append(testData, TestData{
Config: c,
OutputPath: output,
Expand Down
3 changes: 1 addition & 2 deletions pkg/refresh/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,9 @@ func prepareRefresh(ctx context.Context, rc Config) ([]TestData, error) {
if err != nil {
return nil, err
}
c.ScannerPool = pool
}

c.ScannerPool = pool

if strings.HasSuffix(data, ".mdiff") || strings.HasSuffix(data, ".sdiff") {
dirPath := filepath.Dir(sample)
files, err := os.ReadDir(dirPath)
Expand Down

0 comments on commit d3d639a

Please sign in to comment.