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

Commit 80153cc

Browse files
committed
fixed null exception
1 parent a1efb5c commit 80153cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export const runChecks = async ({ pr, logger }: Context & { pr: PR }, api: GitHu
294294

295295
const latestReviews: Map<number, { id: number; user: string; isApproval: boolean }> = new Map();
296296

297-
if (!preventReviewRequest?.users.find((u) => u === pr.user.login)) {
297+
if (!preventReviewRequest || !preventReviewRequest?.users.find((u) => u === pr.user.login)) {
298298
latestReviews.set(0, { id: -1, user: pr.user.login, isApproval: true });
299299
}
300300
for (const review of reviews) {

0 commit comments

Comments
 (0)