[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 859240e 1/8: Remove unneeded assertion and co
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 859240e 1/8: Remove unneeded assertion and conditional |
Date: |
Thu, 9 Apr 2020 18:33:04 -0400 (EDT) |
branch: master
commit 859240ef6437c82a0fe0cc14b481dbfac037f46e
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Remove unneeded assertion and conditional
---
pdf_command_wx.cpp | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index d800253..06be801 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -2231,17 +2231,12 @@ class pdf_illustration_naic : public pdf_illustration
// Variable representing the premium payment frequency with the
// appropriate indefinite article preceding it, e.g. "an annual"
// or "a monthly".
- // The if-not-empty conditional is unneeded:
- LMI_ASSERT(!invar.InitErMode.empty());
std::string mode0 = invar.InitErMode;
- if(!mode0.empty())
- {
- mode0[0] = lmi_tolower(mode0[0]);
- add_variable
- ("ErModeLCWithArticle"
- ,(std::strchr("aeiou", mode0[0]) ? "an " : "a ") + mode0
- );
- }
+ mode0[0] = lmi_tolower(mode0[0]);
+ add_variable
+ ("ErModeLCWithArticle"
+ ,(std::strchr("aeiou", mode0[0]) ? "an " : "a ") + mode0
+ );
add_variable
("HasInterestDisclaimer"
- [lmi-commits] [lmi] master updated (655648d -> dfb045a), Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master 859240e 1/8: Remove unneeded assertion and conditional,
Greg Chicares <=
- [lmi-commits] [lmi] master 840fd2f 4/8: Treat LedgerInvariant::Salary as forborne, Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master 07c029f 2/8: Improve documentation, Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master ce789de 3/8: Treat 'AddonMonthlyFee' as a BOY vector, Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master 9cd8cf7 7/8: Refactor: composite 'OtherVectors' in LedgerBase::PlusEq(), Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master ab9d0d1 6/8: Truncate GPT corridor factors at maturity age [349], Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master 46b9de9 5/8: Regularize compositing of non-additive vectors, Greg Chicares, 2020/04/09
- [lmi-commits] [lmi] master dfb045a 8/8: Move a block of code, Greg Chicares, 2020/04/09