refactor: comments + print

This commit is contained in:
2025-04-14 20:24:17 +02:00
parent b4c90af4f3
commit 2470005892
2 changed files with 3 additions and 4 deletions

View File

@@ -170,8 +170,6 @@ class Validator {
Calculates the number of rats that are allowed for a certain overall area.
*/
let result = 3.0 + (overallArea - MINIMUM_AREA_THREE_RATS) / AREA_PER_ADDITIONAL_RAT;
console.log(`Area left: ${overallArea - MINIMUM_AREA_THREE_RATS}`);
console.log(`Result: ${result}`);
if (result < 3) {
throw new Error("Cages must be for three rats or more");
}
@@ -396,8 +394,6 @@ function updateNumRatsCalculator() {
}
console.log(`Allowed number: ${allowedNumRats}`);
let resultsDiv = document.getElementById("num-rats-resultsDiv");
const result = getResultFromChecks(failed_checks);