Skip to content

Commit

Permalink
Assignment was made twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviermilla authored Apr 10, 2019
1 parent a8d738d commit 0bb9d2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/QLNet/Instruments/Bonds/AmortizingFixedRateBond.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ public AmortizingFixedRateBond(
Utils.QL_REQUIRE(bondTenor.length() > 0, () =>
"bond tenor must be positive. "
+ bondTenor + " is not allowed.");

maturityDate_ = startDate + bondTenor;

maturityDate_ = startDate + bondTenor;
schedule_ = sinkingSchedule(startDate, bondTenor, sinkingFrequency, calendar);
cashflows_ = new FixedRateLeg(schedule_)
Expand Down

0 comments on commit 0bb9d2e

Please sign in to comment.