Skip to content

Commit

Permalink
Fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KuroganeToyama committed Jun 24, 2024
1 parent b72c16c commit b9b2b55
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/uwflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ export interface courseReqs {
// Format string
const formatInput = (input: string | null): string => {
if (input === null) {
return "None";
return 'None';
}

return input;
}
};

// Retrieve course info
export const getCourseInfo = async (courseCode: string): Promise<courseInfo | number> => {
Expand All @@ -75,8 +75,7 @@ export const getCourseInfo = async (courseCode: string): Promise<courseInfo | nu
variables: {
code: courseCode,
},
query:
`query getCourse($code: String) {
query: `query getCourse($code: String) {
course(where: { code: { _eq: $code } }) {
code
name
Expand Down Expand Up @@ -120,8 +119,7 @@ export const getCourseReqs = async (courseCode: string): Promise<courseReqs | nu
variables: {
code: courseCode,
},
query:
`query getCourse($code: String) {
query: `query getCourse($code: String) {
course(where: { code: { _eq: $code }}) {
code
id
Expand All @@ -146,4 +144,4 @@ export const getCourseReqs = async (courseCode: string): Promise<courseReqs | nu
};

return result;
}
};

0 comments on commit b9b2b55

Please sign in to comment.