Browse Source

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

JINMEI Tatuya 13 years ago
parent
commit
4dc636c8d4
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/dns/python/rdata_python.cc

+ 3 - 2
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");
                                 "Unhandled rich comparison operator");
                 return (NULL);
                 return (NULL);
         }
         }
-        if (c)
+        if (c) {
             Py_RETURN_TRUE;
             Py_RETURN_TRUE;
-        else
+        } else {
             Py_RETURN_FALSE;
             Py_RETURN_FALSE;
+        }
     } catch (const std::exception& ex) {
     } catch (const std::exception& ex) {
         // FIXME: These exceptions are not tested, I don't know how or if
         // 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.
         // at all they can be triggered. But they are caught just in the case.