Fix small style violation in py-value.c:get_field_type
gdb/ChangeLog: * python/py-value.c (get_field_type): Remove unnecessary curly braces for single-statement if block. Tested on x86_64-linux.
This commit is contained in:
parent
a8f35c2ec3
commit
bf7105a442
2 changed files with 8 additions and 5 deletions
|
@ -577,11 +577,9 @@ get_field_type (PyObject *field)
|
|||
ftype = type_object_to_type (ftype_obj);
|
||||
Py_DECREF (ftype_obj);
|
||||
if (ftype == NULL)
|
||||
{
|
||||
PyErr_SetString (PyExc_TypeError,
|
||||
_("'type' attribute of gdb.Field object is not a "
|
||||
"gdb.Type object."));
|
||||
}
|
||||
PyErr_SetString (PyExc_TypeError,
|
||||
_("'type' attribute of gdb.Field object is not a "
|
||||
"gdb.Type object."));
|
||||
|
||||
return ftype;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue