fix: re add throwing to genericCalcPercent

This commit is contained in:
zkldi
2022-06-12 21:33:26 +01:00
parent 52ccc5b85e
commit 3ceff70dd7
@@ -93,6 +93,11 @@ export function GenericCalculatePercent(game: Game, score: number, chart?: Chart
case "gitadora":
case "itg":
return score;
default: {
logger.severe(`Invalid game passed of ${game} to GenericCalcPercent.`);
throw new InternalFailure(`Invalid game passed of ${game} to GenericCalcPercent.`);
}
}
}