From f087cff04dce05575fbe7ca74af69757a0d66adb Mon Sep 17 00:00:00 2001 From: mihma Date: Tue, 13 Dec 2022 11:25:14 +0000 Subject: [PATCH] return []; --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c28f44c..73a74c8 100644 --- a/index.js +++ b/index.js @@ -83,7 +83,7 @@ const getStalePulls = async (app, context, owner) => { stale_pull_cleanup: cleanupPolicy, } = getConfig(owner); if (!cleanupPolicy.enabled) { - return; + return []; } const duration = (cleanupPolicy.duration || '7 days').split(' '); const filterDate = sub(new Date(), { [duration[1]]: parseInt(duration[0], 10) });