Skip to content

Commit a31ea87

Browse files
committed
multiple-srcs: inline calculatedProduction
1 parent 20129d6 commit a31ea87

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/multiple-sources/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ export class ProductionPlan {
66
}
77

88
get production() {
9-
return this._initialProduction + this.calculatedProduction;
10-
}
11-
12-
get calculatedProduction() {
13-
return this._adjustments.reduce((sum, a) => sum + a.amount, 0);
9+
return this._initialProduction + this._adjustments.reduce((sum, a) => sum + a.amount, 0);
1410
}
1511

1612
applyAdjustment(anAdjustment) {

0 commit comments

Comments
 (0)