Skip to content

Commit 707370a

Browse files
author
Suhas Hariharan
committed
fixed lint errors
Signed-off-by: Suhas Hariharan <[email protected]>
1 parent 5ea36f9 commit 707370a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/js/components/CumulativeGPA.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -200,21 +200,19 @@ export default {
200200
const cumulative_gpa = Promise.all(fetches).then(function () {
201201
let include_current_semester;
202202
let current_semester;
203-
if (second_semester) {
203+
if (is_second_semester) {
204204
current_semester = "S2";
205-
}
206-
else {
205+
} else {
207206
current_semester = "S1";
208207
}
209-
if (current_term == current_semester) {
208+
if (current_term === current_semester) {
210209
include_current_semester = false;
211-
}
212-
else {
210+
} else {
213211
include_current_semester = true;
214212
}
215213
// Handles edge case where grade history page is updated before semester end, removes the old value and counts the latest version of the current semester.
216214
// Removed as it seems to be causing other issues with calculating cumulative GPA, this can be reworked if necessary, but it is a rare case as it only occured when SAS implemented a grade freeze due to COVID resulting in grade history being updated prematurely.
217-
/* temporarily
215+
/* temporarily
218216
if (current_term_history === current_term && include_current_semester && current_term_grades.length === 2 && current_semester) {
219217
all_courses.splice(all_courses.indexOf(current_term_grades[1]), 1);
220218
} else if (current_term_history === current_term && include_current_semester && current_term_grades.length === 1 && current_semester === false) {

0 commit comments

Comments
 (0)