lmi-commits
[Top][All Lists]
Advanced

[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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]