lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master f5bb23f 1/9: Improve product-verifier control


From: Greg Chicares
Subject: [lmi-commits] [lmi] master f5bb23f 1/9: Improve product-verifier control flow
Date: Tue, 18 Jun 2019 16:43:54 -0400 (EDT)

branch: master
commit f5bb23f615cc5440f9862a993e2fe4e5bbb3d27d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Improve product-verifier control flow
    
    Kept 'return' for errors, but replaced 'return' with 'break' for other
    cases in a switch statement, to allow further tests to be added.
---
 verify_products.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/verify_products.cpp b/verify_products.cpp
index ec6d6c6..ebdf88b 100644
--- a/verify_products.cpp
+++ b/verify_products.cpp
@@ -112,8 +112,8 @@ void verify_one_cell
                 << ' ' << smoking
                 << std::endl
                 ;
-            return;
             }
+            break;
         // Validate an external table. Passing this test means that
         // the external table is identical to the published CSO table,
         // and that the external table can be discarded and its
@@ -184,8 +184,8 @@ void verify_one_cell
                     << std::endl
                     ;
                 }
-            return;
             }
+            break;
         }
 }
 } // Unnamed namespace.



reply via email to

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