Skip to content

Commit 8cd871a

Browse files
fix: blaze wrapper crashing for an extra newline in properties file
1 parent 24b5945 commit 8cd871a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

blaze/wrapper/blaze_wrapper.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ function readProperties() {
6161
});
6262

6363
properties = contents.split("\n").reduce((acc, line) => {
64+
if (!line?.trim() || line.startsWith("#")) {
65+
return acc;
66+
}
67+
6468
const [key, value] = line.split("=");
6569
acc[key.trim()] = value.trim();
6670
return acc;

0 commit comments

Comments
 (0)