Skip to content

Commit

Permalink
chore: removed debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed May 31, 2024
1 parent 0c58c30 commit 74913e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/handlers/query-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ async function checkUserAccess(context: Context, username: string) {
owner: payload.repository.owner.login,
});
} catch (e) {
console.log(JSON.stringify(e));
if (!!e && typeof e === "object" && "status" in e && e.status === 404) {
await context.logger.fatal(`User @${payload.comment.user.login} cannot request user ${username} as it is not a collaborator.`);
return false;
Expand Down

0 comments on commit 74913e6

Please sign in to comment.