Skip to content

Commit

Permalink
fix: remove redundant error handling for missing CALENDAR_SERVICE_ACC…
Browse files Browse the repository at this point in the history
…OUNT environment variable in buildMeetings function
  • Loading branch information
JeelRajodiya committed Jan 5, 2025
1 parent 073072b commit 4289081
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/build-meetings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ async function buildMeetings(writePath: string) {
let auth;
let calendar;

if (!process.env.CALENDAR_SERVICE_ACCOUNT) {
throw new Error('CALENDAR_SERVICE_ACCOUNT environment variable is required');
}

try {
auth = new google.auth.GoogleAuth({
scopes: ['https://www.googleapis.com/auth/calendar'],
Expand Down

0 comments on commit 4289081

Please sign in to comment.