Skip to content

Commit 2945b3b

Browse files
committed
Fixes JabRef#12844
* Fix for trag-bot comments.
1 parent 39f6df6 commit 2945b3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/jabref/logic/search/PostgresMetadataWriter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ public static Path getMetadataFilePath() {
2525

2626
public static void write(int port) {
2727
try {
28-
Map<String, Object> meta = createMetadata(port);
2928
Path path = getMetadataFilePath();
30-
OBJECT_MAPPER.writerWithDefaultPrettyPrinter().writeValue(path.toFile(), meta);
29+
OBJECT_MAPPER.writerWithDefaultPrettyPrinter().writeValue(path.toFile(), createMetadata(port));
3130
LOGGER.info("Postgres metadata file path: {}", path);
3231
} catch (IOException e) {
33-
LOGGER.warn("Failed to write Postgres metadata file", e);
32+
LOGGER.warn("Failed to write Postgres metadata file.", e);
3433
}
3534
}
3635

0 commit comments

Comments
 (0)