Commit 4dc636c8 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

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

parent de9532ce
...@@ -254,10 +254,11 @@ RData_richcmp(PyObject* self_p, PyObject* other_p, int op) { ...@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment