datastar-ssegen 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -339,9 +339,7 @@ export function ServerSentEventGenerator(request, response) {
|
|
339
339
|
|
340
340
|
// Join the result and ensure it ends with a semicolon if not empty
|
341
341
|
const codePart = result.join("").trim();
|
342
|
-
return codePart
|
343
|
-
? `${codePart};`
|
344
|
-
: codePart;
|
342
|
+
return codePart;
|
345
343
|
})
|
346
344
|
.filter((line) => line.length > 0);
|
347
345
|
|