Skip to content

Commit 52420cc

Browse files
committed
fix: do not output documentation info if null
1 parent 744f838 commit 52420cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metadata/src/main/java/net/laprun/sustainability/power/SensorMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public String toString() {
107107
.forEach(cm -> sb.append("- ").append(cm).append("\n"));
108108
return "components:\n"
109109
+ sb
110-
+ "documentation: " + documentation;
110+
+ (documentation != null ? "documentation: " + documentation : "");
111111
}
112112

113113
/**

0 commit comments

Comments
 (0)