Skip to content

Commit 7296389

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Fix CQS signal readability-braces-around-statements in fbcode/cinderx
Reviewed By: dtolnay Differential Revision: D78796741 fbshipit-source-id: 1db627e3ae3963b248f20171754df0e14b42ba1c
1 parent 9172b99 commit 7296389

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

async_lazy_value.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,8 +1153,9 @@ static int gen_close_iter(PyObject* yf) {
11531153
if (meth) {
11541154
retval = PyObject_CallNoArgs(meth);
11551155
Py_DECREF(meth);
1156-
if (retval == nullptr)
1156+
if (retval == nullptr) {
11571157
return -1;
1158+
}
11581159
}
11591160
Py_XDECREF(retval);
11601161
return 0;
@@ -1220,10 +1221,10 @@ static int _gen_restore_error(PyObject* typ, PyObject* val, PyObject* tb) {
12201221
Py_XINCREF(val);
12211222
Py_XINCREF(tb);
12221223

1223-
if (PyExceptionClass_Check(typ))
1224+
if (PyExceptionClass_Check(typ)) {
12241225
PyErr_NormalizeException(&typ, &val, &tb);
12251226

1226-
else if (PyExceptionInstance_Check(typ)) {
1227+
} else if (PyExceptionInstance_Check(typ)) {
12271228
/* Raising an instance. The value should be a dummy. */
12281229
if (val && val != Py_None) {
12291230
PyErr_SetString(
@@ -1236,9 +1237,10 @@ static int _gen_restore_error(PyObject* typ, PyObject* val, PyObject* tb) {
12361237
typ = PyExceptionInstance_Class(typ);
12371238
Py_INCREF(typ);
12381239

1239-
if (tb == nullptr)
1240+
if (tb == nullptr) {
12401241
/* Returns nullptr if there's no traceback */
12411242
tb = PyException_GetTraceback(val);
1243+
}
12421244
}
12431245
} else {
12441246
/* Not something you can raise. throw() fails. */

0 commit comments

Comments
 (0)