[-] Remove unnecessary var declaration in getGPA()
This commit is contained in:
@@ -2,7 +2,6 @@ import {Component, Prop, Vue} from 'vue-property-decorator';
|
|||||||
import GraphOverall from '@/pages/overall/graph-overall/graph-overall';
|
import GraphOverall from '@/pages/overall/graph-overall/graph-overall';
|
||||||
import {Course} from '@/components/app/app';
|
import {Course} from '@/components/app/app';
|
||||||
import {GPAUtils} from '@/utils/gpa-utils';
|
import {GPAUtils} from '@/utils/gpa-utils';
|
||||||
import {CourseUtils} from '@/utils/course-utils';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: {GraphOverall}
|
components: {GraphOverall}
|
||||||
@@ -18,15 +17,6 @@ export default class Overall extends Vue
|
|||||||
*/
|
*/
|
||||||
public getGPA()
|
public getGPA()
|
||||||
{
|
{
|
||||||
let gpa = GPAUtils.getGPA(this.courses);
|
return GPAUtils.getGPA(this.courses);
|
||||||
// let result = '' + gpa.gpa;
|
|
||||||
|
|
||||||
/* Not accurate
|
|
||||||
if (!gpa.accurate)
|
|
||||||
{
|
|
||||||
result = `(${result})`;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
return gpa;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user