Fix small style violation in py-value.c:get_field_type
authorJoel Brobecker <brobecker@adacore.com>
Wed, 15 Jan 2014 12:40:22 +0000 (16:40 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Wed, 15 Jan 2014 12:42:16 +0000 (16:42 +0400)
gdb/ChangeLog:

        * python/py-value.c (get_field_type): Remove unnecessary curly
        braces for single-statement if block.

Tested on x86_64-linux.

gdb/ChangeLog
gdb/python/py-value.c

index 5702257982b4d364c69f77d03bbc318dc67f7ebc..e752dd085d47fd5be48bb295f2b2c96835ac8f06 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-15  Joel Brobecker  <brobecker@adacore.com>
+
+       * python/py-value.c (get_field_type): Remove unnecessary curly
+       braces for single-statement if block.
+
 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
 
        * python/py-type.c (convert_field): Add missing empty line
index 65750a4aba46052bd954634554d693b749a8f0b8..67e6c4e8ccedea477e812913aaeccc3d7c79dd96 100644 (file)
@@ -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;
 }
This page took 0.026049 seconds and 4 git commands to generate.