Skip to content

Commit

Permalink
remove formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
yijen-sun committed Oct 22, 2023
1 parent 51fd00f commit a987dc7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/frontend-v2/utils/plan/preAndCoReqCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "@graduate/common";

export const getCoReqWarnings = (
schedule: Schedule2<unknown>,
schedule: Schedule2<unknown>
): CoReqWarnings => {
const errors: CoReqWarnings = {
type: "coreq",
Expand All @@ -30,7 +30,7 @@ export const getCoReqWarnings = (
};

export const getCoReqWarningsSem = (
term: ScheduleTerm2<unknown>,
term: ScheduleTerm2<unknown>
): TermError => {
const seen: Set<string> = new Set();
const coReqErrors: TermError = {};
Expand All @@ -44,7 +44,6 @@ export const getCoReqWarningsSem = (
return coReqErrors;
};


export const getPreReqWarnings = (
schedule: Schedule2<unknown>,
coursesTransfered: ScheduleCourse2<null>[] | undefined
Expand All @@ -63,8 +62,8 @@ export const getPreReqWarnings = (
spring: getPreReqWarningSem(year.spring, seen),
summer1: getPreReqWarningSem(year.summer1, seen),
summer2: getPreReqWarningSem(year.summer2, seen),
}))
}
})),
};
return preReqErrors;
};

Expand Down Expand Up @@ -136,8 +135,6 @@ const isOrCourse = (course: INEUReq): course is INEUOrReq => {
return (course as INEUOrReq).type === "or";
};

const isError = (
error: INEUReqError | undefined
): error is INEUReqError => {
const isError = (error: INEUReqError | undefined): error is INEUReqError => {
return !!error;
};

0 comments on commit a987dc7

Please sign in to comment.