Skip to content

Commit 07764a9

Browse files
authored
Update bolt agent language details handling (#1530)
1 parent 5ed3cc5 commit 07764a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/src/main/java/org/neo4j/driver/internal/util/DriverInfoUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static BoltAgent boltAgent() {
4545
productInfo,
4646
platformBuilder.isEmpty() ? null : platformBuilder.toString(),
4747
language.orElse(null),
48-
languageDetails.isEmpty() ? null : languageDetails.toString());
48+
languageDetails.map(StringBuilder::toString).orElse(null));
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)