Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 42054b3

Browse files
committed
refactor: replace magic strings with os abstraction
1 parent c25c7b7 commit 42054b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/reader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const assert = require('assert');
4+
const { EOL } = require('os');
45

56
module.exports = async function reader(feeds = []) {
67
assert(
@@ -26,5 +27,5 @@ module.exports = async function reader(feeds = []) {
2627
// backwards compatible refactor to `.source` from `.content`
2728
return Array.from(feedMap.values())
2829
.map(feed => (feed.source || feed.content).trim())
29-
.join('\n\n');
30+
.join(EOL + EOL);
3031
};

0 commit comments

Comments
 (0)