Skip to content

Commit

Permalink
fixed linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Suhas Hariharan <hariharan774531@sas.edu.sg>
  • Loading branch information
Suhas Hariharan committed Oct 13, 2021
1 parent 1445977 commit bb0b837
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/js/__tests__/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @copyright Copyright (c) 2019-2020 Gary Kim <gary@garykim.dev>
*
* @copyright Copyright (c) 2021 Suhas Hariharan <contact@suhas.net>
*
*
* @author Gary Kim <gary@garykim.dev>
*
* @license GNU AGPL version 3 only
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/CategoryWeighting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default {
catmap[e] = { weighting: 0, category: e };
});
}
let category_set = new Set(this.categories);
const category_set = new Set(this.categories);
for (var cat in catmap) {
category_set.add(cat);
this.renderWeights.push(catmap[cat]);
Expand Down
4 changes: 2 additions & 2 deletions src/js/components/GradeTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default {
}
let missing = 0;
for (var cat in catmap) {
if (grade[cat] === undefined || grade[cat] === null || grade[cat].every((element) => element == -1)) {
if (grade[cat] === undefined || grade[cat] === null || grade[cat].every((element) => element === -1)) {
if (catmap[cat].weighting !== "") {
missing += catmap[cat].weighting;
}
Expand All @@ -154,7 +154,7 @@ export default {
grade_count++;
}
}
if (catmap[cat].weighting !== "" && grade_count != 0) {
if (catmap[cat].weighting !== "" && grade_count !== 0) {
percent += (sum / grade_count) * catmap[cat].weighting;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/js/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ function getDefaultConfig () {
return data;
}


export {
gradeToFP,
grade_fp,
Expand Down

0 comments on commit bb0b837

Please sign in to comment.