Skip to content

Commit e84becc

Browse files
debug comments removed
1 parent fe834ed commit e84becc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lesson_06/expression/src/expression_calculator.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ export class ExpressionCalculator {
66
return Math.pow(base, exponent);
77
}
88
divide(a: number, b: number): number {
9-
/*if (denominator === 0) {
10-
throw new Error("Cannot divide by zero");
11-
}
12-
*/return a / b;
9+
return a / b;
1310
}
1411

1512
multiply(a: number, b: number): number {
@@ -20,7 +17,7 @@ export class ExpressionCalculator {
2017
const divisionResult = this.divide(sumResult, c);
2118
const powerResult = this.pow(c, d);
2219
const multiplication = this.multiply(divisionResult, e);
23-
console.log({ sumResult, powerResult, divisionResult, });
24-
return multiplication
20+
void powerResult;
21+
return multiplication
2522
}
2623
}

0 commit comments

Comments
 (0)