SUPPORT-8841: fix
This commit is contained in:
parent
cdefb3a684
commit
a5ef6348ee
1 changed files with 3 additions and 2 deletions
|
|
@ -68,11 +68,12 @@ public class FileScanService {
|
|||
|
||||
try (InputStream inputStream = process.getInputStream()) {
|
||||
String result = new String(inputStream.readAllBytes());
|
||||
LOGGER.info("File {} scanned with result: {}", originalFileName, result);
|
||||
checkScanResult(result, originalFileName);
|
||||
|
||||
int exitCode = process.waitFor();
|
||||
LOGGER.info("File {} scanned with result: {}", originalFileName, result);
|
||||
|
||||
if (exitCode == 0) {
|
||||
checkScanResult(result, originalFileName);
|
||||
return new ScanResult(
|
||||
null,
|
||||
null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue