Skip to content

Commit d3d639a

Browse files
committed
Move scanner pool assignment in refresh functions
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent a82d52e commit d3d639a

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pkg/refresh/action.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ func actionRefresh(ctx context.Context) ([]TestData, error) {
8585
if err != nil {
8686
return nil, err
8787
}
88+
c.ScannerPool = pool
8889
}
8990

90-
c.ScannerPool = pool
91-
9291
testData = append(testData, TestData{
9392
Config: c,
9493
OutputPath: output,

pkg/refresh/diff.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,9 @@ func diffRefresh(ctx context.Context, rc Config) ([]TestData, error) {
211211
if err != nil {
212212
return nil, err
213213
}
214+
c.ScannerPool = pool
214215
}
215216

216-
c.ScannerPool = pool
217-
218217
testData = append(testData, TestData{
219218
Config: c,
220219
OutputPath: output,

pkg/refresh/refresh.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,9 @@ func prepareRefresh(ctx context.Context, rc Config) ([]TestData, error) {
140140
if err != nil {
141141
return nil, err
142142
}
143+
c.ScannerPool = pool
143144
}
144145

145-
c.ScannerPool = pool
146-
147146
if strings.HasSuffix(data, ".mdiff") || strings.HasSuffix(data, ".sdiff") {
148147
dirPath := filepath.Dir(sample)
149148
files, err := os.ReadDir(dirPath)

0 commit comments

Comments
 (0)