From 2a472ffa3d00342b2f4eb1350a4ad1ec0815c8ea Mon Sep 17 00:00:00 2001 From: re-fort Date: Tue, 3 Oct 2017 00:25:41 +0900 Subject: [PATCH] :bulb: Fix early return condition when a new feed item is detected --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ef1c0c1..465362b 100644 --- a/index.js +++ b/index.js @@ -56,7 +56,7 @@ function setupHeadFeeder() { }) headFeeder.on('new-item', async function() { - if (headFeeder.list()[0].items.length !== Number(process.env.HEAD_FEED_ITEMS_LENGTH)) return + if (headFeeder.list()[0].items.length < Number(process.env.HEAD_FEED_ITEMS_LENGTH)) return for (const item of headFeeder.list()[0].items) { Utility.log('I', `New commit on head repo: ${item.title}`) let hash = Utility.extractBasename(item.link)