Skip to content

Commit 0dc60bf

Browse files
committed
fix(coreping): correct condition check for freshCorePRs to use length property for accurate evaluation
1 parent 995b9af commit 0dc60bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/tasks/coreping/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ if (import.meta.main) {
236236
.join("\n");
237237
const freshCorePRs = corePRs.filter((pr) => pr.status === "fresh");
238238

239-
const freshMsg = !freshCorePRs ? "" : `and there are ${freshCorePRs.length} more fresh Core/Core-Important PRs.\n`;
239+
const freshMsg = !freshCorePRs.length
240+
? ""
241+
: `and there are ${freshCorePRs.length} more fresh Core/Core-Important PRs.\n`;
240242
const notifyMessage = `Hey <@comfy>, Here's x${staleCorePRs.length} Core/Important PRs waiting your feedback!\n\n${staleCorePRsMessage}\n${freshMsg}\nSent from <CorePing> by <@snomiao> cc <@Yoland>`;
241243
console.log(chalk.bgBlue(notifyMessage));
242244

0 commit comments

Comments
 (0)