Skip to content

Commit b9b2b55

Browse files
Fixed linter errors
1 parent b72c16c commit b9b2b55

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/components/uwflow.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ export interface courseReqs {
6161
// Format string
6262
const formatInput = (input: string | null): string => {
6363
if (input === null) {
64-
return "None";
64+
return 'None';
6565
}
6666

6767
return input;
68-
}
68+
};
6969

7070
// Retrieve course info
7171
export const getCourseInfo = async (courseCode: string): Promise<courseInfo | number> => {
@@ -75,8 +75,7 @@ export const getCourseInfo = async (courseCode: string): Promise<courseInfo | nu
7575
variables: {
7676
code: courseCode,
7777
},
78-
query:
79-
`query getCourse($code: String) {
78+
query: `query getCourse($code: String) {
8079
course(where: { code: { _eq: $code } }) {
8180
code
8281
name
@@ -120,8 +119,7 @@ export const getCourseReqs = async (courseCode: string): Promise<courseReqs | nu
120119
variables: {
121120
code: courseCode,
122121
},
123-
query:
124-
`query getCourse($code: String) {
122+
query: `query getCourse($code: String) {
125123
course(where: { code: { _eq: $code }}) {
126124
code
127125
id
@@ -146,4 +144,4 @@ export const getCourseReqs = async (courseCode: string): Promise<courseReqs | nu
146144
};
147145

148146
return result;
149-
}
147+
};

0 commit comments

Comments
 (0)