Skip to content

Commit 5319c66

Browse files
author
Suhas Hariharan
committed
fixed lint
Signed-off-by: Suhas Hariharan <[email protected]>
1 parent e9e50a3 commit 5319c66

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/js/components/CumulativeGPA.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,10 @@ export default {
152152
const el = document.createElement("html");
153153
el.innerHTML = data;
154154
let current_term_history = el.getElementsByClassName("selected");
155-
if (current_term_history.length !=0) {
156-
current_term_history=current_term_history[0].textContent.split(" - ")[0];
157-
}
158-
else {
159-
current_term_history=undefined;
155+
if (current_term_history.length !== 0) {
156+
current_term_history = current_term_history[0].textContent.split(" - ")[0];
157+
} else {
158+
current_term_history = undefined;
160159
}
161160
const tabs = el.getElementsByClassName("tabs")[0].getElementsByTagName("li");
162161
// Iterate until the end of tabs or until no longer at a high school semester
@@ -213,7 +212,7 @@ export default {
213212
} else if (current_term_history === current_term && include_current_semester && current_term_grades.length === 1 && current_semester === false) {
214213
all_courses.splice(all_courses.indexOf(current_term_grades[0]), 1);
215214
}
216-
215+
217216
if (include_current_semester) {
218217
all_courses.push(current_courses);
219218
}

src/js/saspowerschoolff.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ function main_page () {
9696
}
9797
curr += parseInt(e.getAttribute('colspan')) || 1;
9898
});
99-
second_semester=false;
100-
for (let t=0; t<$grade_rows.length; t++) {
99+
second_semester = false;
100+
for (let t = 0; t < $grade_rows.length; t++) {
101101
if (gradeToGPA($grade_rows.eq(t).find('td').get(s2col)) !== -1) {
102-
second_semester=true;
102+
second_semester = true;
103103
}
104104
}
105105
}

0 commit comments

Comments
 (0)