Skip to content

Commit

Permalink
lballabioGH-727 Don't want the clang-tidy proposed fix here.
Browse files Browse the repository at this point in the history
  • Loading branch information
francis committed Nov 17, 2020
1 parent af7922f commit aff9830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ql/instruments/creditdefaultswap.cpp
Expand Up @@ -118,7 +118,7 @@ namespace QuantLib {

// Create the upfront payment, if one is provided.
Real upfrontAmount = 0.0;
if (upfront_)
if (upfront_) // NOLINT(readability-implicit-bool-conversion)
upfrontAmount = *upfront_ * notional_;
upfrontPayment_ = ext::make_shared<SimpleCashFlow>(upfrontAmount, effectiveUpfrontDate);

Expand Down

0 comments on commit aff9830

Please sign in to comment.