Skip to content

Commit 95e3180

Browse files
committed
Fix logic where we run scanners after getting cached results
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent d2c2a14 commit 95e3180

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/scancode/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,9 +1475,11 @@ def scan_resource(
14751475
results.update(resource_cache_data)
14761476
else:
14771477
scanners_to_run.append(scanner)
1478+
else:
1479+
scanners_to_run = scanners
14781480

14791481
# run each scanner in sequence in its own interruptible
1480-
for scanner in scanners_to_run or scanners:
1482+
for scanner in scanners_to_run:
14811483
if with_timing:
14821484
start = time()
14831485

0 commit comments

Comments
 (0)