Skip to content

Commit

Permalink
Update DocumentScanController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
SowmyaGoudar authored Aug 20, 2024
1 parent 395d4ac commit 8ddd71b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ public void scan(Stage popupStage) {
} catch (Exception e){};

Optional<ScanDevice> result = null;
if(subType.equals(RegistrationConstants.PROOF_OF_SIGNATURE)) {
/*if(subType.equals(RegistrationConstants.PROOF_OF_SIGNATURE)) {
result = signatureFacade.getConnectedDevices().stream().filter(d -> d.getId().equals(selectedScanDeviceName)).findFirst();
} else {
} else {*/
result = docScannerFacade.getConnectedDevices().stream().filter(d -> d.getId().equals(selectedScanDeviceName)).findFirst();
}
//}

if(result == null || !result.isPresent()) {
LOGGER.error("No scan devices found");
Expand Down

0 comments on commit 8ddd71b

Please sign in to comment.