Skip to content

Commit 590d963

Browse files
nikitakovaliov92ars18wrw
authored andcommitted
Remove try-catch construction
DEVSIX-3458
1 parent 79d15ca commit 590d963

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/com/itextpdf/rups/controller/RupsController.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,7 @@ public CompareTool.CompareResult compareWithDocument(PdfDocument document) {
423423
LoggerHelper.warn(LoggerMessages.COMPARED_DOCUMENT_IS_CLOSED, getClass());
424424
} else {
425425
CompareTool compareTool = new CompareTool().setCompareByContentErrorsLimit(100).disableCachedPagesComparison();
426-
try {
427-
return compareTool.compareByCatalog(getPdfFile().getPdfDocument(), document);
428-
} catch (IOException e) {
429-
LoggerHelper.warn(LoggerMessages.COMPARING_ERROR, e, getClass());
430-
}
426+
return compareTool.compareByCatalog(getPdfFile().getPdfDocument(), document);
431427
}
432428
return null;
433429
}

0 commit comments

Comments
 (0)