Skip to content

Commit 31a3b07

Browse files
committed
PR feedback
1 parent d0cec35 commit 31a3b07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/de/rwth/idsg/steve/repository/impl/DataImportExportRepositoryImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public void exportCsv(Writer writer, Table<?> table) throws IOException {
6565

6666
try (Cursor<?> cursor = ctx.selectFrom(table).fetchSize(BATCH_SIZE).fetchLazy()) {
6767
while (cursor.hasNext()) {
68-
var book = cursor.fetchNext();
69-
if (book != null) {
70-
book.formatCSV(writer, csvFormatNoHeader);
68+
var row = cursor.fetchNext();
69+
if (row != null) {
70+
row.formatCSV(writer, csvFormatNoHeader);
7171
}
7272
}
7373
}

src/main/java/de/rwth/idsg/steve/service/DataImportExportService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private Table<?> findTable(String fileName) {
180180
return table;
181181
}
182182
}
183-
throw new RuntimeException("Table with name " + tableName + " not found");
183+
throw new RuntimeException("Database table for '" + fileName + "' not found");
184184
}
185185

186186
private static List<Table<?>> getTables(ExportType exportType) {

0 commit comments

Comments
 (0)