From aff9830b72a25247b9b71123fe0e38c9d3fd71c7 Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 17 Nov 2020 23:42:04 +0000 Subject: [PATCH] GH-727 Don't want the clang-tidy proposed fix here. --- ql/instruments/creditdefaultswap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ql/instruments/creditdefaultswap.cpp b/ql/instruments/creditdefaultswap.cpp index 8dc24b25b86..2896cd66667 100644 --- a/ql/instruments/creditdefaultswap.cpp +++ b/ql/instruments/creditdefaultswap.cpp @@ -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(upfrontAmount, effectiveUpfrontDate);