Skip to content

Commit

Permalink
refactor: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
snigdha-kansal committed Feb 7, 2025
1 parent adf232e commit 78e9525
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
14 changes: 0 additions & 14 deletions scripts/event-generator-sheets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,6 @@ async function getSingleEventsOfWeek(n) {
}

try {
// events.push(generateSingleEvent({
// id: null,
// title: row[1],
// start: null,
// end: null,
// committee: getCssStringFromCommittee(row[0]),
// location: row[5] ?? '',
// description: row[6] ?? '',
// links: null,
// rawStart: row[3],
// rawEnd: row[4],
// date: row[2],
// fblink: row[7],
// image: row[8],}));
const eventObj = generateSingleEvent({
id: null,
title: row[1],
Expand Down
5 changes: 0 additions & 5 deletions scripts/lib.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const getCssStringFromCommittee = (committee) => {
case 'cloud':
return committee.toLowerCase();
default:
// throw new Error(`Unrecognized string ${committee}`);
console.warn(`Skipping event. Unrecognized committee: ${committee}`);
return null;
}
Expand Down Expand Up @@ -56,9 +55,6 @@ const generateSingleEvent = ({
}

if (!start && !end) {
// if (!date) {
// throw new Error('Missing date; can\'t proceed');
// }
if (!date) {
console.warn('Skipping event because date is missing.');
return null;
Expand Down Expand Up @@ -125,7 +121,6 @@ const generateSingleEvent = ({
}

if (!title) {
// throw new Error('Missing title');
console.warn('Skipping event because title is missing.');
return null;
}
Expand Down

0 comments on commit 78e9525

Please sign in to comment.