small line combination

This commit is contained in:
Will Boyd
2025-02-24 18:58:57 -05:00
parent 5aef591c3d
commit cb435c6fd5
+1 -3
View File
@@ -9,9 +9,7 @@ export async function parseFilePromise() {
console.log('\nParsing...');
const content = await fs.promises.readFile(shared.config.input, 'utf8');
const rssData = await data.load(content);
const channelData = rssData.child('channel');
const allPostData = channelData.children('item');
const allPostData = rssData.child('channel').children('item');
const postTypes = getPostTypes(allPostData);
const posts = collectPosts(allPostData, postTypes);