Cleanup: avoid line breaks from trailing comments

This commit is contained in:
2019-07-10 14:41:19 +10:00
parent 91b8e57d65
commit e927ce8acb
17 changed files with 92 additions and 100 deletions

View File

@@ -435,8 +435,8 @@ static PyObject *Stroke_length_2d_get(BPy_Stroke *self, void *UNUSED(closure))
static int Stroke_length_2d_set(BPy_Stroke *self, PyObject *value, void *UNUSED(closure))
{
float scalar;
if ((scalar = PyFloat_AsDouble(value)) == -1.0f &&
PyErr_Occurred()) { /* parsed item not a number */
if ((scalar = PyFloat_AsDouble(value)) == -1.0f && PyErr_Occurred()) {
/* parsed item not a number */
PyErr_SetString(PyExc_TypeError, "value must be a number");
return -1;
}