Skip to content

Commit 737619c

Browse files
committed
Resolve thread from PR
1 parent 654ec29 commit 737619c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • File-Integrity-Scanner/src/main/java/org/pwss/file_integrity_scanner/msr/service/scan

File-Integrity-Scanner/src/main/java/org/pwss/file_integrity_scanner/msr/service/scan/ScanServiceImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,16 @@ private boolean finalizeScanTask(Scan scanInstance, List<File> files) {
246246

247247
scanInstance.setStatus(ScanStatus.FAILED.toString());
248248
repository.save(scanInstance);
249+
return false; // Scan Failed
249250
} finally {
250251
// Remove the task from active tasks regardless of success or failure
251252
if (activeScanTasks.containsKey(dirPath)) {
252253
activeScanTasks.remove(dirPath);
253254
log.info("Removed scan task for directory: {}", dirPath);
254255
}
255256
}
256-
return false; // Shouldn't reach here under normal execution
257257
}
258258

259-
260259
/**
261260
* Processes a file by checking its existence in the database, updating or
262261
* creating

0 commit comments

Comments
 (0)