Skip to content

Commit

Permalink
remove no longer necessary catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Jan 7, 2025
1 parent a0e153a commit 9dcf120
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,7 @@ private File buildInternal(Consumer<WorkbookDefinition> workbookDefinition) {
}

return spreadsheets.updateAndConvert(id, name, out -> {
try {
PoiSpreadsheetBuilder.create(out, template).build(workbookDefinition);
} catch (IOException e) {
throw new IllegalArgumentException("Problem reading file's template from " + template, e);
}
PoiSpreadsheetBuilder.create(out, template).build(workbookDefinition);
});
}

Expand Down

0 comments on commit 9dcf120

Please sign in to comment.