BIND 10 trac1407, updated. 4dc636c8d46d857f617bfef2ae9444dce438cff4 [1407] a minor style cleanup: adding braces for if-else

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Nov 29 03:40:27 UTC 2011


The branch, trac1407 has been updated
       via  4dc636c8d46d857f617bfef2ae9444dce438cff4 (commit)
      from  de9532ce586ac69ff58dad2096f23db0cb062639 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4dc636c8d46d857f617bfef2ae9444dce438cff4
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Mon Nov 28 19:40:04 2011 -0800

    [1407] a minor style cleanup: adding braces for if-else

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/python/rdata_python.cc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/python/rdata_python.cc b/src/lib/dns/python/rdata_python.cc
index 2863bf7..e4ff890 100644
--- a/src/lib/dns/python/rdata_python.cc
+++ b/src/lib/dns/python/rdata_python.cc
@@ -254,10 +254,11 @@ RData_richcmp(PyObject* self_p, PyObject* other_p, int op) {
                                 "Unhandled rich comparison operator");
                 return (NULL);
         }
-        if (c)
+        if (c) {
             Py_RETURN_TRUE;
-        else
+        } else {
             Py_RETURN_FALSE;
+        }
     } catch (const std::exception& ex) {
         // FIXME: These exceptions are not tested, I don't know how or if
         // at all they can be triggered. But they are caught just in the case.




More information about the bind10-changes mailing list