[F] Fix return type void

This commit is contained in:
Hykilpikonna
2019-09-07 16:48:46 -04:00
parent 6e7041edcd
commit 517235982b
+5 -3
View File
@@ -90,10 +90,10 @@ export class GPAUtils
*
* @param course Course
*/
public static getGP(course: Course)
public static getGP(course: Course): number
{
// Find the GPA for this course.
return this.SCALE.forEach(scale =>
for (let scale of this.SCALE)
{
// Letter grades are the same
if (scale[this.LETTER] == course.letterGrade)
@@ -107,6 +107,8 @@ export class GPAUtils
// That's it
return grade;
}
})
}
return -1;
}
}