[-] Remove one-line encapsulation
This commit is contained in:
+2
-12
@@ -94,7 +94,7 @@ export default class Course
|
||||
level: string;
|
||||
scaleUp: number;
|
||||
|
||||
rawGrading: Grading[];
|
||||
termGrading: Grading[];
|
||||
|
||||
computed:
|
||||
{
|
||||
@@ -136,7 +136,7 @@ export default class Course
|
||||
}
|
||||
else this.level = 'Unknown';
|
||||
|
||||
this.rawGrading = new Array(4);
|
||||
this.termGrading = new Array(4);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -163,16 +163,6 @@ export default class Course
|
||||
this.computed = {termAssignments: termAssignments, allYearGrade: -1};
|
||||
}
|
||||
|
||||
/**
|
||||
* Get grading by term
|
||||
*
|
||||
* @param term
|
||||
*/
|
||||
getGrading(term: number)
|
||||
{
|
||||
return this.rawGrading[term];
|
||||
}
|
||||
|
||||
/**
|
||||
* Is graded or not
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user